mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 02:45:57 -04:00
Don't use SDLMixer class in examples
It turns out that it should be initialized after Mixer class (SDL_mixer docs say so, however official examples use it the other way around. But also it doesn't seem to ne necessary at all, as SDL loads needed libraries automatically anyway
This commit is contained in:
parent
3e2acd191b
commit
96bd99a9a7
@ -33,7 +33,6 @@ using namespace SDL2pp;
|
||||
|
||||
int main(int, char*[]) try {
|
||||
SDL sdl(SDL_INIT_AUDIO);
|
||||
SDLMixer mixerlib(MIX_INIT_OGG);
|
||||
Mixer mixer(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
|
||||
Chunk sound(TESTDATA_DIR "/test.ogg");
|
||||
|
@ -33,7 +33,6 @@ using namespace SDL2pp;
|
||||
|
||||
int main(int, char*[]) try {
|
||||
SDL sdl(SDL_INIT_AUDIO);
|
||||
SDLMixer mixerlib(MIX_INIT_OGG);
|
||||
Mixer mixer(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
|
||||
Chunk sound(TESTDATA_DIR "/test.ogg");
|
||||
|
@ -33,7 +33,6 @@ using namespace SDL2pp;
|
||||
|
||||
int main(int, char*[]) try {
|
||||
SDL sdl(SDL_INIT_AUDIO);
|
||||
SDLMixer mixerlib(MIX_INIT_OGG);
|
||||
Mixer mixer(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
|
||||
Music music(TESTDATA_DIR "/test.ogg");
|
||||
|
Loading…
x
Reference in New Issue
Block a user