ref: 2a13b33f5890de7e010b4d93d73d8ae227d0e6e9
parent: 1967dddb9481532ad289cb4b20d3ccf3eb2be3be
author: Chris Bagwell <chris@cnpbagwell.com>
date: Thu Sep 29 17:06:36 EDT 2011
Fix OSX coreaudio device name searches. Would stop looking after 3rd device based on how device_count was computed.
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@
o Give pulseaudio driver higher priority than alsa or oss now that
its proven stable and gives user more features; such as per app
volume control. (cbagwell)
+ o Fix but when specifying OSX coreaudio device name. Would only
+ search for first 3 devices. (cbagwell)
Effects:
--- a/src/coreaudio.c
+++ b/src/coreaudio.c
@@ -150,7 +150,7 @@
if (status == noErr)
{
int i;
- for (i = 0; i < property_size/sizeof(AudioDeviceID); i++)
+ for (i = 0; i < device_count; i++)
{
char name[256];
status = AudioDeviceGetProperty(devices[i],0,false,kAudioDevicePropertyDeviceName,&property_size,&name);