fixed indentation

This commit is contained in:
bjoernf 2023-08-16 22:52:50 +02:00
parent 9ec002c216
commit 3c5dc65105

View File

@ -18,13 +18,13 @@ int play_raw_audio(char file_name[]) {
return 1; return 1;
} }
pa_simple* simple = NULL; pa_simple* simple = NULL;
pa_sample_spec ss; pa_sample_spec ss;
ss.format = PA_SAMPLE_S16LE; ss.format = PA_SAMPLE_S16LE;
ss.rate = 48000; ss.rate = 48000;
ss.channels = 2; ss.channels = 2;
// Temporarily redirect stderr to /dev/null // Temporarily redirect stderr to /dev/null
// because pulseaudio prints to stderr even though it does not set any error codes // because pulseaudio prints to stderr even though it does not set any error codes
FILE *original_stderr = stderr; FILE *original_stderr = stderr;
stderr = fopen("/dev/null", "w"); stderr = fopen("/dev/null", "w");
@ -34,7 +34,7 @@ int play_raw_audio(char file_name[]) {
// Restore stderr // Restore stderr
stderr = original_stderr; stderr = original_stderr;
int i = 0; int i = 0;
while (read(myfd, content, sizeof(content))) { while (read(myfd, content, sizeof(content))) {
// skip the first 1024 bytes to not play the file header // skip the first 1024 bytes to not play the file header
if (i != 0) { if (i != 0) {