Namespace: Un4seen.Bass.AddOn.Wma
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Parameters
- handle
- Type: SystemInt32
The WMA stream or encoder handle.
Return Value
Type: IntPtrIf succesful, then a pointer to the requested object is returned, otherwise is returned. Use BASS_ErrorGetCode to get the error code.
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(Int32).
See the Windows Media Format SDK for information on the IWMReader and associated interfaces.
When streaming local (not internet) files, this function may actually return an IWMSyncReader interface instead of an IWMReader interface. The type of interface can be determined by querying other interfaces from it, e.g. IWMReaderAdvanced.
See the Windows Media Format SDK for information on the IWMReader, IWMWriter and associated interfaces.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
IntPtr pUnk = Un4seen.Bass.AddOn.Wma.BassWma.BASS_WMA_GetWMObject(stream); IWMHeaderInfo3 headerInfo3 = (IWMHeaderInfo3)Marshal.GetObjectForIUnknown( pUnk ); if (headerInfo3 != null) { ... }