Defines the Sound resource class. More...
#include "Memory/ResourceManager.h"Classes | |
| class | SoundSample |
| The SoundSample resource class. More... | |
| class | SoundStream |
| The SoundStream resource class. More... | |
| class | Sound |
| The Sound class. More... | |
| class | Music |
| The Music class. More... | |
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=true) |
| Loads an SoundSample using the global SoundSampleManager. | |
| SoundStreamRef | LoadSoundStreamResource (const char *file, bool useResourcePath=true) |
| Loads an SoundStream using the global SoundStreamManager. | |
Variables | |
| const int | SOUND_SPECTRUM_MAX_BUFFER_SIZE = 512 |
Defines the Sound resource class.
Defines the Sound resource class for loading and playing sound effects.
| 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.
| const int SOUND_SPECTRUM_MAX_BUFFER_SIZE = 512 |
The number of elements in the sound spectrum buffer.
1.6.3