From 94f4a3d7aa0cbad91d62f8b0d8d0e52c58c2bd6d Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 28 Aug 2015 19:32:18 +0300 Subject: [PATCH] Include Chunk into example --- examples/mixer.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/mixer.cc b/examples/mixer.cc index a957cfd..2f06827 100644 --- a/examples/mixer.cc +++ b/examples/mixer.cc @@ -26,14 +26,17 @@ #include #include +#include using namespace SDL2pp; int main() try { - SDL sdl(SDL_INIT_VIDEO); + SDL sdl(SDL_INIT_AUDIO); SDLMixer mixer(MIX_INIT_OGG); - // that's all for now + // currently fails as audio device hasn't been opened + Chunk chunk(TESTDATA_DIR "/test.ogg"); + chunk.Volume(128); return 0; } catch (std::exception& e) {