Skip to content

Commit

Permalink
Pass in libconfig info during init.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed May 4, 2015
1 parent d1b0689 commit df7a046
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion audio_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void help(void) {
);
}

static int init(int argc, char **argv) {
static int init(int argc, char **argv, config_t *cfgp) {
ao_initialize();
int driver = ao_default_driver_id();
ao_option *ao_opts = NULL;
Expand Down
2 changes: 1 addition & 1 deletion audio_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
int Fs;
long long starttime, samples_played;

static int init(int argc, char **argv) {
static int init(int argc, char **argv, config_t *cfgp) {
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion audio_pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void help(void) {
);
}

static int init(int argc, char **argv) {
static int init(int argc, char **argv, config_t *cfgp) {
pulse_options.apname = config.apname;

optind = 1; // optind=0 is equivalent to optind=1 plus special behaviour
Expand Down
2 changes: 1 addition & 1 deletion audio_sndio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
static struct sio_hdl *sio;
static struct sio_par par;

static int init(int argc, char **argv) {
static int init(int argc, char **argv, config_t *cfgp) {
sio = sio_open(SIO_DEVANY, SIO_PLAY, 0);
if (!sio)
die("sndio: cannot connect to sound server");
Expand Down

0 comments on commit df7a046

Please sign in to comment.