Welcome Guest [Log In] [Register]
Viewing Single Post From: Sound
Alan
Administrator
[ *  *  * ]
Sound(std::string _Name ,
std::string _FileName,
int _Channel,
int _NumberOfTimesToLoop,
int _Volume)

Public function of the Sound Class

Description:
Constructor of the sound class

Notes:
Call create sound instead of creating a new instance.
Create sound will do this for you and insert the sound in to the sound list


Arguments:


Required:

std::string _Name
name of the sound used for the find sound funtion


std::string _FileName
file name of the audio file to load


Optional:

int _Channel
the channel to play the sound on
defaults to 0

int _NumberOfTimesToLoop
number of times to play the sound
defaults to 0 (loops for ever)

int _Volume
sets the volume of the channel
defaults to MIX_MAX_VOLUME


Return Value:
none
Offline Profile Quote Post
Sound · Documentation