| Table of Contents | ||||
|
|
||||
| StartUp | ||||
|
Purpose Initializes the sound engine |
||||
|
Protoype void CSoundMngr::StartUp (int i_mixrate, int i_maxchannels) |
||||
|
Parameters
|
||||
|
Description This function initializes the sound engine and must be called before any other CSoundMngr functions. The mix rate should match the audio clips that you wish to play, a common mix rate is 44100 - values can vary from 4000 to 65535. The number of software channels is used in conjunction with the available hardware channels (which is auto-detected). If hardware channels become full, then the software channels are used. If there are no hardware channels available, then the software channels are all there are, so it's best to allocate a good amount (32-64). |
||||
|
Use CSoundMngr sound; sound.StartUp(44100, 32); |
||||
|
|
||||
|