Permalink
Browse files

Support older versions of libao.

  • Loading branch information...
1 parent 6ac65ce commit 56e601711115cd26c8bf192a6d2d5050421d05a0 @miracle2k miracle2k committed May 15, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 hairtunes.c
View
@@ -823,6 +823,9 @@ void* init_ao() {
ao_append_option(&ao_opts, "id", libao_deviceid);
} else if(libao_devicename){
ao_append_option(&ao_opts, "dev", libao_devicename);
+ // Old libao versions (for example, 0.8.8) only support
+ // "dsp" instead of "dev".
+ ao_append_option(&ao_opts, "dsp", libao_devicename);
}
ao_device *dev = ao_open_live(driver, &fmt, ao_opts);

0 comments on commit 56e6017

Please sign in to comment.