Skip to content

Commit

Permalink
Stop the "ao", "pulse" and "sndio" backends from complaining about th…
Browse files Browse the repository at this point in the history
…e new output rate and format information.
  • Loading branch information
mikebrady committed Mar 13, 2017
1 parent 0fa606b commit 0ad3428
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions audio_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ static void deinit(void) {
}

static void start(int sample_rate, int sample_format) {
if (sample_rate != 0)
die("unexpected sample rate!");
if (sample_format != 0)
die("unexpected sample format!");
}

static void play(short buf[], int samples) { ao_play(dev, (char *)buf, samples * 4); }
Expand Down
4 changes: 0 additions & 4 deletions audio_pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ static void deinit(void) {
}

static void start(int sample_rate, int sample_format) {
if (sample_rate != 0)
die("unexpected sample rate!");
if (sample_format != 0)
die("unexpected sample format!");
}

static void play(short buf[], int samples) {
Expand Down
4 changes: 0 additions & 4 deletions audio_sndio.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ static int init(int argc, char **argv) {
static void deinit(void) { sio_close(sio); }

static void start(int sample_rate) {
if (sample_rate != par.rate)
die("unexpected sample rate!");
if (sample_format != 0)
die("unexpected sample format!");
sio_start(sio);
}

Expand Down

0 comments on commit 0ad3428

Please sign in to comment.