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

#include <AudioSamplePool.h>

Public Member Functions

 AudioSamplePool (bool looping)
 
SoundPlaybackResult playNew (PAudioSample sample, PAudioDataSource source, bool positional=false)
 
SoundPlaybackResult playUniqueSoundId (PAudioSample sample, PAudioDataSource source, SoundId id, bool positional=false)
 
SoundPlaybackResult playUniquePid (PAudioSample sample, PAudioDataSource source, Pid pid, bool positional=false)
 
void pause ()
 
void resume ()
 
void stop ()
 
void stopSoundId (SoundId soundId)
 
void stopPid (Pid pid)
 
void update ()
 
void setVolume (float value)
 
bool hasPlaying ()
 

Private Attributes

std::list< AudioSamplePoolEntry_samplePool
 
bool _looping
 

Constructor & Destructor Documentation

◆ AudioSamplePool()

AudioSamplePool::AudioSamplePool ( bool  looping)
inlineexplicit

Member Function Documentation

◆ hasPlaying()

bool AudioSamplePool::hasPlaying ( )

◆ pause()

void AudioSamplePool::pause ( )

◆ playNew()

SoundPlaybackResult AudioSamplePool::playNew ( PAudioSample  sample,
PAudioDataSource  source,
bool  positional = false 
)

◆ playUniquePid()

SoundPlaybackResult AudioSamplePool::playUniquePid ( PAudioSample  sample,
PAudioDataSource  source,
Pid  pid,
bool  positional = false 
)

◆ playUniqueSoundId()

SoundPlaybackResult AudioSamplePool::playUniqueSoundId ( PAudioSample  sample,
PAudioDataSource  source,
SoundId  id,
bool  positional = false 
)

◆ resume()

void AudioSamplePool::resume ( )

◆ setVolume()

void AudioSamplePool::setVolume ( float  value)

◆ stop()

void AudioSamplePool::stop ( )

◆ stopPid()

void AudioSamplePool::stopPid ( Pid  pid)

◆ stopSoundId()

void AudioSamplePool::stopSoundId ( SoundId  soundId)

◆ update()

void AudioSamplePool::update ( )

Member Data Documentation

◆ _looping

bool AudioSamplePool::_looping
private

◆ _samplePool

std::list<AudioSamplePoolEntry> AudioSamplePool::_samplePool
private

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