[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/54264: audio(4) API fails to detect a capture-only device
>Synopsis: audio(4) API fails to detect a capture-only device
>Arrival-Date: Sun Jun 02 13:35:00 +0000 2019
>Originator: Nia Alarie
>Release: NetBSD 8.99.42
I'm testing with a USB microphone, which is /dev/audio1.
First I query the device with AUDIO_GETPROPS. It claims that the
device has playback support. This is incorrect.
Then I query the device with AUDIO_GETFORMAT, which only fills the
record struct with valid data, and fills the playback struct with
Currently, I can't figure out how to detect a USB microphone other
than by hoping that the garbage in the prinfo struct is out of range.
Main Index |
Thread Index |