BASS_MIDI_FontSetVolume


Sets a soundfont's volume level.

BOOL BASS_MIDI_FontSetVolume(
    HSOUNDFONT handle,
    float volume
);

Parameters

handleThe soundfont to set the volume of.
volumeThe volume level... 0 = silent, 1.0 = normal/default.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle is not valid.

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.

See also

BASS_MIDI_FontGetVolume