SDL_Function

Name

Mix_VolumeChunk -- Sets the volume of a chunk.

Synopsis

#include "SDL_mixer.h"

int Mix_VolumeChunk(Mix_Chunk *chunk, int volume);

Description

Mix_VolumeChunk sets the volume of a chunk specified by chunk. The amount passed to volume can be between 0 and MIX_MAX_VOLUME which equals 128.

Return Value

Returns the previous volume of the chunk.

Example

Mix_Chunk *sound = Mix_LoadWAV("some-sound-effect.wav");
Mix_VolumeChunk(sound, MIX_MAX_VOLUME);

See Also

Mix_LoadWAV

Mix_VolumeChunk (last edited 2008-04-17 08:18:55 by localhost)