BASS.NET API for the Un4seen BASS Audio Library

BassSfxBASS_SFX_PluginRender Method

BASS.NET API for the Un4seen BASS Audio Library
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: Boolean
If successful, then is returned, else is returned.
Remarks

Only for use with Sonique, BassBox or Windows Media Player plugins.

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 CODEDescription
BASS_SFX_ERROR_INITBASS_SFX_Init(IntPtr, IntPtr) has not been successfully called.
BASS_SFX_ERROR_HANDLEInvalid SFX handle.
BASS_SFX_ERROR_MEMMemory error.
BASS_SFX_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference