mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Include Chunk into example
This commit is contained in:
parent
9a2a741120
commit
94f4a3d7aa
@ -26,14 +26,17 @@
|
||||
|
||||
#include <SDL2pp/SDL.hh>
|
||||
#include <SDL2pp/SDLMixer.hh>
|
||||
#include <SDL2pp/Chunk.hh>
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user