mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-07 14:25:17 -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/SDL.hh>
|
||||||
#include <SDL2pp/SDLMixer.hh>
|
#include <SDL2pp/SDLMixer.hh>
|
||||||
|
#include <SDL2pp/Chunk.hh>
|
||||||
|
|
||||||
using namespace SDL2pp;
|
using namespace SDL2pp;
|
||||||
|
|
||||||
int main() try {
|
int main() try {
|
||||||
SDL sdl(SDL_INIT_VIDEO);
|
SDL sdl(SDL_INIT_AUDIO);
|
||||||
SDLMixer mixer(MIX_INIT_OGG);
|
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;
|
return 0;
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user