#include <OSX_WavPlayer.h>
Public Member Functions | |
int | PlayAudio () |
WavPlayer (const char *fileName) | |
Private Member Functions | |
short | getHalf (unsigned char *buffer, int index) |
int | getWord (unsigned char *buffer, int index) |
bool | isDataChunk (unsigned char *buffer, int index) |
void * | LoadPCM (const char *filename, unsigned long *len) |
int | PlayBuffer (void *pcm, unsigned long len) |
Static Private Member Functions | |
static void | aqBufferCallback (void *in, AudioQueueRef inQ, AudioQueueBufferRef outQB) |
Private Attributes | |
short | AudioFormat |
short | BitsPerSample |
short | BlockAlign |
int | ByteRate |
const char * | FileName |
short | NumChannels |
int | SampleRate |
Definition at line 40 of file OSX_WavPlayer.h.
OVR::Platform::OSX::WavPlayer::WavPlayer | ( | const char * | fileName | ) |
Definition at line 20 of file OSX_WavPlayer.cpp.
void OVR::Platform::OSX::WavPlayer::aqBufferCallback | ( | void * | in, |
AudioQueueRef | inQ, | ||
AudioQueueBufferRef | outQB | ||
) | [static, private] |
Definition at line 148 of file OSX_WavPlayer.cpp.
short OVR::Platform::OSX::WavPlayer::getHalf | ( | unsigned char * | buffer, |
int | index | ||
) | [private] |
Definition at line 49 of file OSX_WavPlayer.cpp.
int OVR::Platform::OSX::WavPlayer::getWord | ( | unsigned char * | buffer, |
int | index | ||
) | [private] |
Definition at line 35 of file OSX_WavPlayer.cpp.
bool OVR::Platform::OSX::WavPlayer::isDataChunk | ( | unsigned char * | buffer, |
int | index | ||
) | [private] |
Definition at line 25 of file OSX_WavPlayer.cpp.
void * OVR::Platform::OSX::WavPlayer::LoadPCM | ( | const char * | filename, |
unsigned long * | len | ||
) | [private] |
Definition at line 59 of file OSX_WavPlayer.cpp.
Definition at line 175 of file OSX_WavPlayer.cpp.
int OVR::Platform::OSX::WavPlayer::PlayBuffer | ( | void * | pcm, |
unsigned long | len | ||
) | [private] |
Definition at line 86 of file OSX_WavPlayer.cpp.
short OVR::Platform::OSX::WavPlayer::AudioFormat [private] |
Definition at line 53 of file OSX_WavPlayer.h.
short OVR::Platform::OSX::WavPlayer::BitsPerSample [private] |
Definition at line 58 of file OSX_WavPlayer.h.
short OVR::Platform::OSX::WavPlayer::BlockAlign [private] |
Definition at line 57 of file OSX_WavPlayer.h.
int OVR::Platform::OSX::WavPlayer::ByteRate [private] |
Definition at line 56 of file OSX_WavPlayer.h.
const char* OVR::Platform::OSX::WavPlayer::FileName [private] |
Definition at line 59 of file OSX_WavPlayer.h.
short OVR::Platform::OSX::WavPlayer::NumChannels [private] |
Definition at line 54 of file OSX_WavPlayer.h.
int OVR::Platform::OSX::WavPlayer::SampleRate [private] |
Definition at line 55 of file OSX_WavPlayer.h.