cisst-saw
|
#include <osaOpenAL.h>
Public Types | |
enum | SoundFormat { MONO8, MONO16, STEREO8, STEREO16 } |
Public Member Functions | |
osaOpenAL () | |
~osaOpenAL () | |
void | Configure (const std::string &CMN_UNUSED(filename)) |
void | Startup (void) |
void | Play (void) |
void | Pause (void) |
void | Stop (void) |
void | Run (void) |
void | OpenFile (const mtsStdString &fName) |
void | Seek (const mtsDouble &time) |
void | SetVolume (const mtsDouble &volume) |
int | CalcStreamPos (double time) |
double | GetStartTime () |
double | GetEndTime () |
mtsBool | GetIsPlaying () |
mtsDouble | GetTime () |
void | GetStreamVolume (mtsDouble &volume) |
void | SaveClip (const std::string &filePathPrefix, double startTime, double endTime) |
![]() | |
virtual | ~cmnGenericObject (void) |
virtual const cmnClassServicesBase * | Services (void) const =0 |
bool | ReconstructFrom (const cmnGenericObject &other) |
std::string | ToString (void) const |
virtual void | ToStream (std::ostream &outputStream) const |
virtual void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter= ' ') |
virtual void | SerializeRaw (std::ostream &outputStream) const |
virtual void | DeSerializeRaw (std::istream &inputStream) |
virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
virtual size_t | ScalarNumber (void) const |
virtual bool | ScalarNumberIsFixed (void) const |
virtual double | Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range) |
virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
Protected Types | |
enum | FileType { CAI, WAV } |
Protected Member Functions | |
double | CalcStreamVolume (int samplePos) |
double | CalcStreamTime (int samplePos) |
std::string | GetALErrorString (ALenum err) |
bool | CheckALError (std::string &error) |
bool | InitOpenAL (void) |
bool | CloseOpenAL (void) |
void | OpenHeaderFile (const std::string &filename, std::ofstream &stream) |
void | CloseHeaderFile (std::ofstream &stream) |
void | WriteToHeaderFile (const double ×tamp, const int bytes, std::ofstream &stream) |
Protected Attributes | |
mtsStdString | FileName |
FILE * | SoundFile |
FileType | FType |
char * | Data |
unsigned int | NumDataBytes |
osaOpenALCAIHeader * | SoundSettings |
ALuint | SoundBuffer [1] |
ALuint | SoundSource [1] |
osaOpenALCAIHeader * | CAIHeader |
osaOpenALWAVHeader * | WAVHeader |
mtsDouble | Time |
mtsDouble | StartTimeAbsolute |
mtsDouble | LengthInSec |
mtsBool | IsPlaying |
mtsDouble | Volume |
mtsDouble | StreamVolume |
const osaTimeServer * | TimeServer |
ALCdevice * | Device |
ALCcontext * | Context |
mtsFunctionVoid | RangeChangedEvent |
std::vector< double > | TimeStamps |
std::vector< double > | SamplePosInBytes |
|
protected |
osaOpenAL::osaOpenAL | ( | ) |
osaOpenAL::~osaOpenAL | ( | ) |
int osaOpenAL::CalcStreamPos | ( | double | time | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
protected |
double osaOpenAL::GetEndTime | ( | ) |
|
inline |
double osaOpenAL::GetStartTime | ( | ) |
|
inline |
|
inline |
|
protected |
void osaOpenAL::OpenFile | ( | const mtsStdString & | fName | ) |
|
protected |
void osaOpenAL::Pause | ( | void | ) |
void osaOpenAL::Play | ( | void | ) |
void osaOpenAL::Run | ( | void | ) |
void osaOpenAL::SaveClip | ( | const std::string & | filePathPrefix, |
double | startTime, | ||
double | endTime | ||
) |
void osaOpenAL::Seek | ( | const mtsDouble & | time | ) |
void osaOpenAL::SetVolume | ( | const mtsDouble & | volume | ) |
void osaOpenAL::Startup | ( | void | ) |
void osaOpenAL::Stop | ( | void | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |