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) {