Recent Changes - Search:

Documentation

Help

Tutorials

RoadMap

Help Docs for wiki writers:

PmWiki

edit SideBar

SoundConstructor

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

Edit - History - Print - Recent Changes - Search
Page last modified on March 12, 2008, at 02:21 PM