diff --git a/csoundbox.c b/csoundbox.c index edfa5fc..77278b8 100644 --- a/csoundbox.c +++ b/csoundbox.c @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) { //initialize libconfig cfginit(); - + ao_initialize(); while ( (c = getopt_long(argc, argv, short_options, long_options, NULL)) != -1 ) { switch (c) { diff --git a/sound.c b/sound.c index e4a447d..ae4a0ad 100644 --- a/sound.c +++ b/sound.c @@ -35,7 +35,7 @@ void *playThreadFunc(void *arg) { long rate; /* initializations */ - ao_initialize(); + driver = ao_default_driver_id(); mpg123_init(); mh = mpg123_new(NULL, &err);