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

#include <OpenALSample16.h>

Inheritance diagram for AudioSample16:
IAudioSample

Public Member Functions

 AudioSample16 ()
 
virtual ~AudioSample16 () override
 
virtual bool Open (PAudioDataSource data_source) override
 
virtual bool IsValid () override
 
virtual bool IsStopped () override
 
virtual bool Play (bool loop=false, bool positioned=false) override
 
virtual bool Stop () override
 
virtual bool Pause () override
 
virtual bool Resume () override
 
virtual bool SetVolume (float volume) override
 
virtual bool SetPosition (float x, float y, float z, float max_dist) override
 
- Public Member Functions inherited from IAudioSample
 IAudioSample ()
 
virtual ~IAudioSample ()
 
virtual bool Open (PAudioDataSource data_source)=0
 
virtual bool IsValid ()=0
 
virtual bool IsStopped ()=0
 
virtual bool Play (bool loop=false, bool positioned=false)=0
 
virtual bool Stop ()=0
 
virtual bool Pause ()=0
 
virtual bool Resume ()=0
 
virtual bool SetVolume (float volume)=0
 
virtual bool SetPosition (float x, float y, float z, float max_dist)=0
 

Protected Member Functions

void Close ()
 
void defaultSource ()
 

Protected Attributes

PAudioDataSource pDataSource = nullptr
 
ALuint al_source = -1
 
Vec3f _position = Vec3f(0.0, 0.0, 0.0)
 
float _maxDistance = 0.0
 
float _volume = 0.0
 

Constructor & Destructor Documentation

◆ AudioSample16()

AudioSample16::AudioSample16 ( )
inline

◆ ~AudioSample16()

AudioSample16::~AudioSample16 ( )
overridevirtual

Member Function Documentation

◆ Close()

void AudioSample16::Close ( )
protected

◆ defaultSource()

void AudioSample16::defaultSource ( )
protected

◆ IsStopped()

bool AudioSample16::IsStopped ( )
overridevirtual

Implements IAudioSample.

◆ IsValid()

bool AudioSample16::IsValid ( )
overridevirtual

Implements IAudioSample.

◆ Open()

bool AudioSample16::Open ( PAudioDataSource  data_source)
overridevirtual

Implements IAudioSample.

◆ Pause()

bool AudioSample16::Pause ( )
overridevirtual

Implements IAudioSample.

◆ Play()

bool AudioSample16::Play ( bool  loop = false,
bool  positioned = false 
)
overridevirtual

Implements IAudioSample.

◆ Resume()

bool AudioSample16::Resume ( )
overridevirtual

Implements IAudioSample.

◆ SetPosition()

bool AudioSample16::SetPosition ( float  x,
float  y,
float  z,
float  max_dist 
)
overridevirtual

Implements IAudioSample.

◆ SetVolume()

bool AudioSample16::SetVolume ( float  volume)
overridevirtual

Implements IAudioSample.

◆ Stop()

bool AudioSample16::Stop ( )
overridevirtual

Implements IAudioSample.

Member Data Documentation

◆ _maxDistance

float AudioSample16::_maxDistance = 0.0
protected

◆ _position

Vec3f AudioSample16::_position = Vec3f(0.0, 0.0, 0.0)
protected

◆ _volume

float AudioSample16::_volume = 0.0
protected

◆ al_source

ALuint AudioSample16::al_source = -1
protected

◆ pDataSource

PAudioDataSource AudioSample16::pDataSource = nullptr
protected

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