diff --git a/OneLoneCoder_PGE_SoundTest.cpp b/OneLoneCoder_PGE_SoundTest.cpp index 106b94d..2b9da94 100644 --- a/OneLoneCoder_PGE_SoundTest.cpp +++ b/OneLoneCoder_PGE_SoundTest.cpp @@ -53,6 +53,8 @@ #define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" + +#define OLC_PGEX_SOUND #include "olcPGEX_Sound.h" #include @@ -114,7 +116,8 @@ private: bool OnUserCreate() { - olc::SOUND::InitialiseAudio(); + olc::SOUND::InitialiseAudio(44100, 1, 8, 512); + sndSampleA = olc::SOUND::LoadAudioSample("SampleA.wav"); sndSampleB = olc::SOUND::LoadAudioSample("SampleB.wav"); sndSampleC = olc::SOUND::LoadAudioSample("SampleC.wav");