Copyright © 2005-2018 MultiMedia Soft

MIDI.SoundFontVolumeGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the volume level of the given MIDI SoundFont. The current volume level can be modified through the MIDI.SoundFontVolumeSet method.

 

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

 

 

Syntax

 

[Visual Basic]

Public Function SoundFontVolumeGet (

nPlayerIndex as Int16,

ByRef fVolume as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes SoundFontVolumeGet (

Int16 nPlayerIndex,

ref float fVolume

);


 

[C++]

public: enumErrorCodes SoundFontVolumeGet (

Int16 nPlayerIndex,

float __gc *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

Reference that, on return from the method call, will contain the SoundFont volume expressed in percentage

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.