comparison render_sdl.c @ 1810:73a9d06413bc

Restore some newlines in debug output that got lost when fixing GDB remote debugging issue
author Michael Pavone <pavone@retrodev.com>
date Wed, 27 Mar 2019 22:23:55 -0700
parents c2057d79998c
children 70a1304b432b
comparison
equal deleted inserted replaced
1809:c2057d79998c 1810:73a9d06413bc
1057 sample_rate = actual.freq; 1057 sample_rate = actual.freq;
1058 output_channels = actual.channels; 1058 output_channels = actual.channels;
1059 debug_message("Initialized audio at frequency %d with a %d sample buffer, ", actual.freq, actual.samples); 1059 debug_message("Initialized audio at frequency %d with a %d sample buffer, ", actual.freq, actual.samples);
1060 sample_size = SDL_AUDIO_BITSIZE(actual.format) / 8; 1060 sample_size = SDL_AUDIO_BITSIZE(actual.format) / 8;
1061 if (actual.format == AUDIO_S16SYS) { 1061 if (actual.format == AUDIO_S16SYS) {
1062 debug_message("signed 16-bit int format"); 1062 debug_message("signed 16-bit int format\n");
1063 convert = convert_s16; 1063 convert = convert_s16;
1064 mix_buf = calloc(output_channels * buffer_samples, sizeof(float)); 1064 mix_buf = calloc(output_channels * buffer_samples, sizeof(float));
1065 } else if (actual.format == AUDIO_F32SYS) { 1065 } else if (actual.format == AUDIO_F32SYS) {
1066 debug_message("32-bit float format"); 1066 debug_message("32-bit float format\n");
1067 convert = clamp_f32; 1067 convert = clamp_f32;
1068 mix_buf = NULL; 1068 mix_buf = NULL;
1069 } else { 1069 } else {
1070 debug_message("unsupported format %X\n", actual.format); 1070 debug_message("unsupported format %X\n", actual.format);
1071 warning("Unsupported audio sample format: %X\n", actual.format); 1071 warning("Unsupported audio sample format: %X\n", actual.format);