Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmPlay::get_MidiRenderers Example for C

Show in webframe

This function deselects all MIDI renderers from the specified play object.

void IltmmPlay_get_MidiRenderers_Example (IltmmPlay* pPlay)
{
        IltmmRenderers *pRenderers = NULL; 
        IltmmRenderer *pRenderer = NULL; 
        long lCount; 
        int i; 

        HRESULT hr = IltmmPlay_get_MidiRenderers(pPlay, &pRenderers); 

        if(FAILED(hr) || pRenderers == NULL) 
                return; 

        IltmmRenderers_get_Count(pRenderers, &lCount); 

        for(i=0; i<lCount; i++)
        {
                IltmmRenderers_Item(pRenderers, i, &pRenderer); 
                IltmmRenderer_put_Selected(pRenderer, VARIANT_FALSE); 
                IltmmRenderer_Release(pRenderer); 
        }

        IltmmRenderers_Release(pRenderers); 
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.