Commit 0bfab96c authored by Marvin Scholz's avatar Marvin Scholz

output: Probe for macOS audio devices

parent 5c6f1295
......@@ -523,6 +523,21 @@ static void output_probe_monitor_pulse(){
}
}
static void output_probe_monitor_macosx(){
/* does this AO even have macosx output? */
int id = ao_driver_id("macosx");
if(id>=0){
/* test open; format doesn't matter */
ao_sample_format format={16,48000,2,AO_FMT_NATIVE,NULL};
ao_device *test=ao_open_live(id, &format, NULL);
if(test){
add_monitor(NULL,"macosx",id);
ao_close(test);
}
}
}
static int moncomp(const void *a, const void *b){
output_monitor_entry *ma=(output_monitor_entry *)a;
output_monitor_entry *mb=(output_monitor_entry *)b;
......@@ -535,6 +550,8 @@ int output_probe_monitor(void ){
return 0;
}
output_probe_monitor_macosx();
output_probe_monitor_pulse();
{
int n = monitor_entries;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment