OpenEnroth 73e68f7
|
#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 |
|
inlineexplicit |
bool AudioSamplePool::hasPlaying | ( | ) |
void AudioSamplePool::pause | ( | ) |
SoundPlaybackResult AudioSamplePool::playNew | ( | PAudioSample | sample, |
PAudioDataSource | source, | ||
bool | positional = false |
||
) |
SoundPlaybackResult AudioSamplePool::playUniquePid | ( | PAudioSample | sample, |
PAudioDataSource | source, | ||
Pid | pid, | ||
bool | positional = false |
||
) |
SoundPlaybackResult AudioSamplePool::playUniqueSoundId | ( | PAudioSample | sample, |
PAudioDataSource | source, | ||
SoundId | id, | ||
bool | positional = false |
||
) |
void AudioSamplePool::resume | ( | ) |
void AudioSamplePool::setVolume | ( | float | value | ) |
void AudioSamplePool::stop | ( | ) |
void AudioSamplePool::stopPid | ( | Pid | pid | ) |
void AudioSamplePool::stopSoundId | ( | SoundId | soundId | ) |
void AudioSamplePool::update | ( | ) |
|
private |
|
private |