Skip to content

Commit

Permalink
Support older versions of libao.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed May 15, 2011
1 parent 6ac65ce commit 56e6017
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hairtunes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56e6017

Please sign in to comment.