OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenALSoundProvider Class Reference

#include <OpenALSoundProvider.h>

Classes

struct  StreamingTrackBuffer
 
struct  TrackBuffer
 

Public Member Functions

 OpenALSoundProvider ()
 
virtual ~OpenALSoundProvider ()
 
bool Initialize ()
 
void Release ()
 
void DeleteStreamingTrack (StreamingTrackBuffer **buffer)
 
void DeleteBuffer16 (TrackBuffer **buffer)
 
float alBufferLength (unsigned int buffer)
 
StreamingTrackBufferCreateStreamingTrack16 (int num_channels, int sample_rate, int bytes_per_sample)
 
void Stream16 (StreamingTrackBuffer *buffer, int num_samples, const void *samples, bool wait=false)
 
TrackBufferCreateTrack16 (int num_channels, int sample_rate, const void *data, size_t size)
 
void PlayTrack16 (TrackBuffer *buffer, bool loop=false, bool wait=false)
 
void SetListenerPosition (float x, float y, float z)
 
void SetOrientation (float yaw, float pitch)
 

Protected Member Functions

void DeleteBuffers (StreamingTrackBuffer *track, int type)
 

Protected Attributes

ALCdevice * device
 
ALCcontext * context
 

Constructor & Destructor Documentation

◆ OpenALSoundProvider()

OpenALSoundProvider::OpenALSoundProvider ( )

◆ ~OpenALSoundProvider()

OpenALSoundProvider::~OpenALSoundProvider ( )
virtual

Member Function Documentation

◆ alBufferLength()

float OpenALSoundProvider::alBufferLength ( unsigned int  buffer)

◆ CreateStreamingTrack16()

OpenALSoundProvider::StreamingTrackBuffer * OpenALSoundProvider::CreateStreamingTrack16 ( int  num_channels,
int  sample_rate,
int  bytes_per_sample 
)

◆ CreateTrack16()

OpenALSoundProvider::TrackBuffer * OpenALSoundProvider::CreateTrack16 ( int  num_channels,
int  sample_rate,
const void *  data,
size_t  size 
)

◆ DeleteBuffer16()

void OpenALSoundProvider::DeleteBuffer16 ( TrackBuffer **  buffer)

◆ DeleteBuffers()

void OpenALSoundProvider::DeleteBuffers ( StreamingTrackBuffer track,
int  type 
)
protected

◆ DeleteStreamingTrack()

void OpenALSoundProvider::DeleteStreamingTrack ( StreamingTrackBuffer **  buffer)

◆ Initialize()

bool OpenALSoundProvider::Initialize ( )

◆ PlayTrack16()

void OpenALSoundProvider::PlayTrack16 ( TrackBuffer buffer,
bool  loop = false,
bool  wait = false 
)

◆ Release()

void OpenALSoundProvider::Release ( )

◆ SetListenerPosition()

void OpenALSoundProvider::SetListenerPosition ( float  x,
float  y,
float  z 
)

◆ SetOrientation()

void OpenALSoundProvider::SetOrientation ( float  yaw,
float  pitch 
)

◆ Stream16()

void OpenALSoundProvider::Stream16 ( StreamingTrackBuffer buffer,
int  num_samples,
const void *  samples,
bool  wait = false 
)

Member Data Documentation

◆ context

ALCcontext* OpenALSoundProvider::context
protected

◆ device

ALCdevice* OpenALSoundProvider::device
protected

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