BASS WMA

BASS_WMA_GetWMObject


Retrieves a pointer to the IWMReader interface of a WMA stream, or IWMWriter interface of a WMA encoder.

void *BASS_WMA_GetWMObject(
    DWORD handle
);

Parameters

handleThe WMA stream or encoder handle.

Return value

If successful, then a pointer to the requested object is returned, otherwise NULL is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle is not valid.

Remarks

This function allows those that are familiar with the Windows Media Format SDK to access the internal object interface, for extra functionality. If you create any objects through a retrieved interface, make sure you release the objects before calling BASS_StreamFree or BASS_WMA_EncodeClose.

When streaming local (not internet) files, this function will usually actually return an IWMSyncReader interface instead of an IWMReader interface. The type of interface can be determined by querying other interfaces from it, eg. IWMReaderAdvanced.

See the Windows Media Format SDK for information on the IWMReader, IWMWriter, and associated interfaces.