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: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Changes take immediate effect in any MIDI streams that are using the soundfont.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
See Also