Implements the Sound resource class. More...
#include <assert.h>#include "Common/Globals.h"#include "Sound/Sound.h"#include "fmod.h"Functions | |
| bool | InitSoundSubSystem () |
| Initializes the sound system (fmod). Call this function once before creating any sounds. | |
| void | GetSoundSpectrum (float *spectrum, uint n) |
| Gets the frequancy information for all currently playing audio. | |
| SoundSampleRef | LoadSoundSampleResource (const char *file, bool useResourcePath) |
| Loads an SoundSample using the global SoundSampleManager. | |
| SoundStreamRef | LoadSoundStreamResource (const char *file, bool useResourcePath) |
| Loads an SoundStream using the global SoundStreamManager. | |
Implements the Sound resource class.
| void GetSoundSpectrum | ( | float * | spectrum, | |
| uint | n | |||
| ) |
Gets the frequancy information for all currently playing audio.
| [out] | spectrum | an array of floats that will hold the frequancy data. |
| [in] | n | the number of floating point values, should be less then SOUND_SPECTRUM_MAX_BUFFER_SIZE. |
| bool InitSoundSubSystem | ( | ) |
Initializes the sound system (fmod). Call this function once before creating any sounds.
| SoundSampleRef LoadSoundSampleResource | ( | const char * | file, | |
| bool | useResourcePath = true | |||
| ) |
Loads an SoundSample using the global SoundSampleManager.
| [in] | file | the filename of the SoundSample to load assumed to be relative to the 'Sounds' data path. |
| [in] | useResourcePath | set to true to use the currently set resource path. Defaults to true. |
NOTE: This should only be called after the global environment has been initialized.
| SoundStreamRef LoadSoundStreamResource | ( | const char * | file, | |
| bool | useResourcePath = true | |||
| ) |
Loads an SoundStream using the global SoundStreamManager.
| [in] | file | the filename of the SoundStream to load assumed to be relative to the 'Sounds' data path. |
| [in] | useResourcePath | set to true to use the currently set resource path. Defaults to true. |
NOTE: This should only be called after the global environment has been initialized.
1.6.3