#include <ArSoundPlayer.h>
Static Public Member Functions | |
| static ArRetFunctor2< bool, const char *, const char * > * | getPlayWavFileCallback () |
| static ArFunctor * | getStopPlayingCallback () |
| static bool | playNativeFile (const char *filename, const char *params) |
| static bool | playSoundPCM16 (char *data, int numSamples) |
| static bool | playWavFile (const char *filename, const char *params) |
| static void | stopPlaying () |
Static Protected Attributes | |
| static int | myPlayChildPID |
| Only used on Linux. | |
|
static ArGlobalRetFunctor2< bool, const char *, const char * > | ourPlayWavFileCB |
| static ArGlobalFunctor | ourStopPlayingCB |
| static ArRetFunctor2<bool, const char*, const char*>* ArSoundPlayer::getPlayWavFileCallback | ( | ) | [static] |
Return the static functor for playWavFile
| static ArFunctor* ArSoundPlayer::getStopPlayingCallback | ( | ) | [static] |
Return the static functor for stopPlaying().
| static bool ArSoundPlayer::playNativeFile | ( | const char * | filename, | |
| const char * | params | |||
| ) | [static] |
Play a file in some native file format for the compilation platform.
| static bool ArSoundPlayer::playSoundPCM16 | ( | char * | data, | |
| int | numSamples | |||
| ) | [static] |
Play raw uncompressed PCM16 sound data. The format of this data is numSamples samples of two bytes each. Each byte pair is a signed little endian integer. The sound will be played back at 16kHz, monaurally.
| static bool ArSoundPlayer::playWavFile | ( | const char * | filename, | |
| const char * | params | |||
| ) | [static] |
Play a WAV (Windows RIFF) file
| filename | Name of the file to play | |
| params | ignored |
| static void ArSoundPlayer::stopPlaying | ( | ) | [static] |
Cancel (interrupt) any current sound or file playback.
1.5.1