diff render_sdl.c @ 1809:c2057d79998c

Request float 32 sample format since it saves us a conversion now that the gain code has been added
author Michael Pavone <pavone@retrodev.com>
date Wed, 27 Mar 2019 22:19:49 -0700
parents 34370330eaf3
children 73a9d06413bc
line wrap: on
line diff
--- a/render_sdl.c	Wed Mar 27 22:04:54 2019 -0700
+++ b/render_sdl.c	Wed Mar 27 22:19:49 2019 -0700
@@ -1038,7 +1038,7 @@
    		rate = 48000;
    	}
     desired.freq = rate;
-	desired.format = AUDIO_S16SYS;
+	desired.format = AUDIO_F32SYS;
 	desired.channels = 2;
     char * samples_str = tern_find_path(config, "audio\0buffer\0", TVAL_PTR).ptrval;
    	int samples = samples_str ? atoi(samples_str) : 0;