From 62f2d6931c8fac75680369083d0ca4debdce2a6e Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 26 Aug 2018 08:06:31 +1000 Subject: [PATCH] Fix the dithering example from the last commit. --- tests/mal_dithering.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;