comparison 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
comparison
equal deleted inserted replaced
1808:ce6881d64eef 1809:c2057d79998c
1036 int rate = rate_str ? atoi(rate_str) : 0; 1036 int rate = rate_str ? atoi(rate_str) : 0;
1037 if (!rate) { 1037 if (!rate) {
1038 rate = 48000; 1038 rate = 48000;
1039 } 1039 }
1040 desired.freq = rate; 1040 desired.freq = rate;
1041 desired.format = AUDIO_S16SYS; 1041 desired.format = AUDIO_F32SYS;
1042 desired.channels = 2; 1042 desired.channels = 2;
1043 char * samples_str = tern_find_path(config, "audio\0buffer\0", TVAL_PTR).ptrval; 1043 char * samples_str = tern_find_path(config, "audio\0buffer\0", TVAL_PTR).ptrval;
1044 int samples = samples_str ? atoi(samples_str) : 0; 1044 int samples = samples_str ? atoi(samples_str) : 0;
1045 if (!samples) { 1045 if (!samples) {
1046 samples = 512; 1046 samples = 512;