Copyright © 2001-2019 MultiMedia Soft

MIDI.SoundFontVolumeSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the volume level of the given MIDI SoundFont. The current volume level can be obtained through the MIDI.SoundFontVolumeGet method.

 

For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

control.MIDI.SoundFontVolumeSet (

nUniqueId as Long,

fVolume as Single

) as enumErrorCodes


 

[C++]

short control.MIDI.SoundFontVolumeSet (

long nUniqueId,

float fVolume

);


 

Parameter

Description

 

 

nUniqueId

Number representing the unique identifier of the MIDI SoundFont as returned by a previous call to one between the MIDI.SoundFontInit or MIDI.SoundFontInitFromMemory or MIDI.SoundFontInitFromMemory methods.

fVolume

The SoundFont volume expressed in percentage

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful