From 3c5dc651052eec1020d3eca95d79f42f317307d9 Mon Sep 17 00:00:00 2001 From: bjoernf Date: Wed, 16 Aug 2023 22:52:50 +0200 Subject: [PATCH] fixed indentation --- play_raw_audio.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/play_raw_audio.c b/play_raw_audio.c index 4773781..6193e79 100644 --- a/play_raw_audio.c +++ b/play_raw_audio.c @@ -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) {