Module Name: src Committed By: nia Date: Fri Oct 16 12:23:34 UTC 2020
Modified Files: src/lib/libossaudio: ossaudio.c Log Message: ossaudio: Various OSSv4 fixes for SNDCTL_AUDIOINFO - Per OSSv4, make this ioctl work on the main mixer device. Since the native NetBSD API uses queries on individual audio devices, we have to reopen the correct audio device specified in the input to the ioctl and fetch information from that. - Correctly return whether the device is for playback, capture, or both. - Return the full name of the device in the name field. - The "handle" has to be a globally unique identifier. The closest thing we have to that is device numbers, so use device numbers. - Return reasonable values in min_rate/max_rate and min_channels/max_channels. This should allow Mumble's device enumeration to work with a lot less patching. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libossaudio/ossaudio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.