fixed indentation

This commit is contained in:
bjoernf 2023-08-16 22:52:50 +02:00
parent 9ec002c216
commit 3c5dc65105
1 changed files with 7 additions and 7 deletions

View File

@ -18,13 +18,13 @@ int play_raw_audio(char file_name[]) {
return 1;
}
pa_simple* simple = NULL;
pa_sample_spec ss;
ss.format = PA_SAMPLE_S16LE;
ss.rate = 48000;
ss.channels = 2;
pa_simple* simple = NULL;
pa_sample_spec ss;
ss.format = PA_SAMPLE_S16LE;
ss.rate = 48000;
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
FILE *original_stderr = stderr;
stderr = fopen("/dev/null", "w");
@ -34,7 +34,7 @@ int play_raw_audio(char file_name[]) {
// Restore stderr
stderr = original_stderr;
int i = 0;
int i = 0;
while (read(myfd, content, sizeof(content))) {
// skip the first 1024 bytes to not play the file header
if (i != 0) {