#include <olcPGEX_Sound.h>
|
| static bool | InitialiseAudio (unsigned int nSampleRate=44100, unsigned int nChannels=1, unsigned int nBlocks=8, unsigned int nBlockSamples=512) |
| |
| static bool | DestroyAudio () |
| |
| static void | SetUserSynthFunction (std::function< float(int, float, float)> func) |
| |
| static void | SetUserFilterFunction (std::function< float(int, float, float)> func) |
| |
| static int | LoadAudioSample (std::string sWavFile, olc::ResourcePack *pack=nullptr) |
| |
| static void | PlaySample (int id, bool bLoop=false) |
| |
| static void | StopSample (int id) |
| |
| static void | StopAll () |
| |
| static float | GetMixerOutput (int nChannel, float fGlobalTime, float fTimeStep) |
| |
◆ DestroyAudio()
| static bool olc::SOUND::DestroyAudio |
( |
| ) |
|
|
static |
◆ GetMixerOutput()
| static float olc::SOUND::GetMixerOutput |
( |
int | nChannel, |
|
|
float | fGlobalTime, |
|
|
float | fTimeStep ) |
|
static |
◆ InitialiseAudio()
| static bool olc::SOUND::InitialiseAudio |
( |
unsigned int | nSampleRate = 44100, |
|
|
unsigned int | nChannels = 1, |
|
|
unsigned int | nBlocks = 8, |
|
|
unsigned int | nBlockSamples = 512 ) |
|
static |
◆ LoadAudioSample()
| static int olc::SOUND::LoadAudioSample |
( |
std::string | sWavFile, |
|
|
olc::ResourcePack * | pack = nullptr ) |
|
static |
◆ PlaySample()
| static void olc::SOUND::PlaySample |
( |
int | id, |
|
|
bool | bLoop = false ) |
|
static |
◆ SetUserFilterFunction()
| static void olc::SOUND::SetUserFilterFunction |
( |
std::function< float(int, float, float)> | func | ) |
|
|
static |
◆ SetUserSynthFunction()
| static void olc::SOUND::SetUserSynthFunction |
( |
std::function< float(int, float, float)> | func | ) |
|
|
static |
◆ StopAll()
| static void olc::SOUND::StopAll |
( |
| ) |
|
|
static |
◆ StopSample()
| static void olc::SOUND::StopSample |
( |
int | id | ) |
|
|
static |
◆ listActiveSamples
The documentation for this class was generated from the following file: