Ticket #41 (assigned enhancement)
Support "Default Device" in Core Audio
| Reported by: | bjornroche | Owned by: | bjornroche |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | host-api-coreaudio | Version: | |
| Keywords: | default device | Cc: |
Description (last modified by bjornroche) (diff)
Mac OS X supports what it calls the "default audio device", which is different from the device that happens to be the default. The "Default Audio Device" may change if a device is plugged or unplugged. For example, this behavior can be seen in !iTunes: if you use the control panel to set the default device to a USB device and then unplug the device, !iTunes will keep playing, but switches to another device.
CoreAudio probably takes care of most of the troubling stuff in this transition, but it isn't clear what happens when the number of channels changes, or what other things need to be handled by he CoreAudio client. Certainly any converters the client is responsible for (such as input SR conversion) would need to be changed. Another thing that's unclear is how this device should be presented to PortAudio clients. Should it be another device, or should it be used whenever the user selects the device that happens to be the default? or calls OpenDefaultStream? Or should it only be reachable using platform specific calls, since this is not a normal behavior in PortAudio?
