diff --git a/tests/mal_dithering.c b/tests/mal_dithering.c index 37a9ce5f..8a309f12 100644 --- a/tests/mal_dithering.c +++ b/tests/mal_dithering.c @@ -74,9 +74,6 @@ int do_dithering_test() mal_device_uninit(&device); - // Now we play the sound after it's run through a dithered format converter. - mal_sine_wave_init(0.5, 400, device.sampleRate, &sineWave); - mal_format srcFormat = mal_format_s24; mal_format dstFormat = mal_format_u8; mal_dither_mode ditherMode = mal_dither_mode_triangle; @@ -112,6 +109,9 @@ int do_dithering_test() return -1; } + // Now we play the sound after it's run through a dithered format converter. + mal_sine_wave_init(0.5, 400, device.sampleRate, &sineWave); + result = mal_device_start(&device); if (result != MAL_SUCCESS) { return -2;