Sound::setMusicChannelVolume

FMOD Studio API

Firelight Technologies FMOD Studio API

Sound::setMusicChannelVolume

Sets the volume of a MOD/S3M/XM/IT/MIDI music channel volume.

C++ Syntax

FMOD_RESULT Sound::setMusicChannelVolume(
  int channel,
  float volume
);

C Syntax

FMOD_RESULT FMOD_Sound_SetMusicChannelVolume(
  FMOD_SOUND *sound,
  int channel,
  float volume
);

C# Syntax

RESULT Sound.setMusicChannelVolume(
  int channel,
  float volume
);

JavaScript Syntax

Sound.setMusicChannelVolume(
  channel,                         
  volume                           
);

Parameters

channel
MOD/S3M/XM/IT/MIDI music subchannel to set a linear volume for.
volume
Volume of the channel from 0.0 to 1.0. Default = 1.0.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

Use Sound::getMusicNumChannels to get the maximum number of music channels in the song.

See Also




Version 1.10.03 Built on Feb 1, 2018