EsounD: patch for Mac OS X coreaudio device selection



I've included a patch to audio_coreaudio.c that allows coreaudio device specification, e.g.:

[dbook: /tmp]$ esd -d "Built-in Input"
- using device Built-in Input
using device Soundflower (2ch) for output:
        with sample rate 44100.000000, 2 channels and 32-bit sample
using device Built-in Input for input:
        with sample rate 44100.000000, 2 channels and 32-bit sample

A complication is that a specified device may not have both input and output capabilities, in which case the driver resorts to the default input or output device. In the above example, "Built-in Input" does not have any output channels, so the driver selected "Soundflower (2ch)," which is the default output device on my system, for output.

-Ojas

Attachment: esound-audio_coreaudio.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]