53 ALuint SoundBuffer[1];
54 ALuint SoundSource[1];
67 double CalcStreamVolume(
int samplePos);
68 double CalcStreamTime(
int samplePos);
70 std::string GetALErrorString(ALenum err);
71 bool CheckALError(std::string & error);
75 bool InitOpenAL(
void);
76 bool CloseOpenAL(
void);
88 void OpenHeaderFile(
const std::string & filename, std::ofstream & stream);
89 void CloseHeaderFile(std::ofstream & stream);
90 void WriteToHeaderFile(
const double & timestamp,
const int bytes, std::ofstream &stream);
108 void SetVolume(
const mtsDouble & volume);
109 int CalcStreamPos(
double time);
111 double GetStartTime();
118 void SaveClip(
const std::string &filePathPrefix,
double startTime,
double endTime);
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
mtsDouble GetTime()
Definition: osaOpenAL.h:114
mtsDouble Time
Definition: osaOpenAL.h:59
char * Data
Definition: osaOpenAL.h:48
osaOpenALCAIHeader * SoundSettings
Definition: osaOpenAL.h:51
Definition: osaOpenAL.h:93
#define CMN_UNUSED(argument)
Definition: cmnPortability.h:479
const osaTimeServer * TimeServer
Definition: osaOpenAL.h:73
#define CMN_LOG_LEVEL_RUN_VERBOSE
Definition: cmnLogLoD.h:64
std::vector< double > TimeStamps
Definition: osaOpenAL.h:83
Definition: mtsFunctionVoid.h:36
Base class for high level objects.
Definition: cmnGenericObject.h:51
unsigned int NumDataBytes
Definition: osaOpenAL.h:49
CMN_DECLARE_SERVICES_INSTANTIATION(osaOpenAL)
Definition: osaOpenAL.h:37
ALCdevice * Device
Definition: osaOpenAL.h:78
SoundFormat
Definition: osaOpenAL.h:93
ALCcontext * Context
Definition: osaOpenAL.h:79
mtsStdString FileName
Definition: osaOpenAL.h:44
mtsFunctionVoid RangeChangedEvent
Definition: osaOpenAL.h:81
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
mtsDouble Volume
Definition: osaOpenAL.h:64
void GetStreamVolume(mtsDouble &volume)
Definition: osaOpenAL.h:115
std::vector< double > SamplePosInBytes
Definition: osaOpenAL.h:84
Class for relative time.
Definition: osaTimeServer.h:73
FileType FType
Definition: osaOpenAL.h:46
mtsDouble StartTimeAbsolute
Definition: osaOpenAL.h:60
FILE * SoundFile
Definition: osaOpenAL.h:45
void Configure(const std::string &CMN_UNUSED(filename))
Definition: osaOpenAL.h:98
mtsDouble StreamVolume
Definition: osaOpenAL.h:65
osaOpenALCAIHeader * CAIHeader
Definition: osaOpenAL.h:56
mtsBool IsPlaying
Definition: osaOpenAL.h:63
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
osaOpenALWAVHeader * WAVHeader
Definition: osaOpenAL.h:57
mtsDouble LengthInSec
Definition: osaOpenAL.h:61
FileType
Definition: osaOpenAL.h:42
mtsBool GetIsPlaying()
Definition: osaOpenAL.h:113