Renders a Sonique, BassBox or Windows Media Player visual plugin to a device context.
Namespace: Un4seen.Bass.AddOn.Sfx
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bass_sfx")] public static bool BASS_SFX_PluginRender( int handle, int channel, IntPtr hDC )
Parameters
- handle
- Type: SystemInt32
The SFX plugin handle (as obtained by BASS_SFX_PluginCreate(String, IntPtr, Int32, Int32, BASSSFXFlag)). - channel
- Type: SystemInt32
The BASS channel to render, can be a HSTREAM or HMUSIC handle. - hDC
- Type: SystemIntPtr
The device context handle of the control to which you want to render the plugin.
Return Value
Type: BooleanIf successful, then is returned, else is returned.
Remarks
A device context handle (hDC) can be obtained using e.g. the System.Drawing.Graphics class. E.g. you might get a device context for any control by calling the CreateGraphics method.
ERROR CODE | Description |
---|---|
BASS_SFX_ERROR_INIT | BASS_SFX_Init(IntPtr, IntPtr) has not been successfully called. |
BASS_SFX_ERROR_HANDLE | Invalid SFX handle. |
BASS_SFX_ERROR_MEM | Memory error. |
BASS_SFX_ERROR_UNKNOWN | Some other mystery problem! |
See Also