Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
OVR::Platform::OSX::WavPlayer Class Reference

#include <OSX_WavPlayer.h>

List of all members.

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

Detailed Description

Definition at line 40 of file OSX_WavPlayer.h.


Constructor & Destructor Documentation

OVR::Platform::OSX::WavPlayer::WavPlayer ( const char *  fileName)

Definition at line 20 of file OSX_WavPlayer.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 53 of file OSX_WavPlayer.h.

Definition at line 58 of file OSX_WavPlayer.h.

Definition at line 57 of file OSX_WavPlayer.h.

Definition at line 56 of file OSX_WavPlayer.h.

Definition at line 59 of file OSX_WavPlayer.h.

Definition at line 54 of file OSX_WavPlayer.h.

Definition at line 55 of file OSX_WavPlayer.h.


The documentation for this class was generated from the following files:


oculus_sdk
Author(s): Tully Foote
autogenerated on Thu Jun 6 2019 20:13:49