BASS.NET API for the Un4seen BASS Audio Library

BassMidiBASS_MIDI_FontSetVolume Method

BASS.NET API for the Un4seen BASS Audio Library
Sets a soundfont's volume level.

Namespace:  Un4seen.Bass.AddOn.Midi
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassmidi")]
public static bool BASS_MIDI_FontSetVolume(
	int handle,
	float volume
)

Parameters

handle
Type: SystemInt32
The soundfont to set the volume of.
volume
Type: SystemSingle
The volume level... 0=silent, 1.0=normal/default.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

By default, some soundfonts may be louder than others, which could be a problem when mixing multiple soundfonts. This function can be used to compensate for any differences, by raising the level of the quieter soundfonts or lowering the louder ones.

Changes take immediate effect in any MIDI streams that are using the soundfont.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

See Also

Reference