diff options
author | Mke Brady <mikebrady@eircom.net> | 2015-06-01 23:16:50 +0100 |
---|---|---|
committer | Mke Brady <mikebrady@eircom.net> | 2015-06-01 23:16:50 +0100 |
commit | 87a0475c16a8203c9029a34e60cec00e23a86ab7 (patch) | |
tree | c454ba62ad2d964f7fde8481774115662cc3587f /audio_dummy.c | |
parent | 04e27cfe4f37f411612e44a7af939ec5848f35d6 (diff) |
Reformat using clang-format.
Diffstat (limited to 'audio_dummy.c')
-rw-r--r-- | audio_dummy.c | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/audio_dummy.c b/audio_dummy.c index 2fd8ebf..57fbec1 100644 --- a/audio_dummy.c +++ b/audio_dummy.c @@ -32,41 +32,31 @@ int Fs; long long starttime, samples_played; -static int init(int argc, char **argv) { - return 0; -} +static int init(int argc, char **argv) { return 0; } -static void deinit(void) { -} +static void deinit(void) {} static void start(int sample_rate) { - Fs = sample_rate; - starttime = 0; - samples_played = 0; - debug(1,"dummy audio output started at Fs=%d Hz\n", sample_rate); + Fs = sample_rate; + starttime = 0; + samples_played = 0; + debug(1, "dummy audio output started at Fs=%d Hz\n", sample_rate); } -static void play(short buf[], int samples) { -} +static void play(short buf[], int samples) {} -static void stop(void) { - debug(1,"dummy audio stopped\n"); -} +static void stop(void) { debug(1, "dummy audio stopped\n"); } -static void help(void) { - printf(" There are no options for dummy audio.\n"); -} +static void help(void) { printf(" There are no options for dummy audio.\n"); } -audio_output audio_dummy = { - .name = "dummy", - .help = &help, - .init = &init, - .deinit = &deinit, - .start = &start, - .stop = &stop, - .flush = NULL, - .delay = NULL, - .play = &play, - .volume = NULL, - .parameters = NULL -}; +audio_output audio_dummy = {.name = "dummy", + .help = &help, + .init = &init, + .deinit = &deinit, + .start = &start, + .stop = &stop, + .flush = NULL, + .delay = NULL, + .play = &play, + .volume = NULL, + .parameters = NULL}; |