mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Test SDLMixer init
Some SDLMixer tests are muted: Mix_Init(0) doesn't really return mask of initted sample/music loaders for me, despite the documentation says it should. SDL_mixer bug?
This commit is contained in:
parent
8e177f6606
commit
e37245b7e1
@ -10,7 +10,16 @@ using namespace SDL2pp;
|
||||
|
||||
BEGIN_TEST(int, char*[])
|
||||
SDL sdl(SDL_INIT_AUDIO);
|
||||
SDLMixer mixerlib;
|
||||
SDLMixer mixerlib(MIX_INIT_OGG);
|
||||
|
||||
{
|
||||
// Init
|
||||
EXPECT_EQUAL(mixerlib.GetInitFlags(), MIX_INIT_OGG, "Mix_Init(0) doesn't return mask of init'd loaders", NON_FATAL);
|
||||
|
||||
EXPECT_TRUE(mixerlib.InitMore(MIX_INIT_FLAC) & MIX_INIT_FLAC);
|
||||
|
||||
EXPECT_EQUAL(mixerlib.GetInitFlags(), MIX_INIT_OGG | MIX_INIT_FLAC, "Mix_Init(0) doesn't return mask of init'd loaders", NON_FATAL);
|
||||
}
|
||||
|
||||
Mixer mixer(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user