PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.51k stars 307 forks source link

PA/ALSA doesn't support ALSA subdevices eg hw:1,0,0 and hw:1,0,1 (Native Instruments Audio4DJ soundcard) #212

Open PortAudio-admin opened 12 years ago

PortAudio-admin commented 12 years ago

Issue created by @RossBencina

Owen Williams reports: The Native Instruments Audio4DJ soundcard uses subdevices, like hw:1,0,0 and hw:1,0,1.
PortAudio did not expose these devices as separate portaudio devices.

This is not supported in PortAudio prior to r1815.

Dmitry committed fixes for this in r1815 and r1822 however they are being rolled back for now pending review.

The most recent code from Dmitry is attached to this ticket.

Proposed fixes to this issue were comitted to trunk but have now been moved to a branch. the original commits were: http://www.assembla.com/code/portaudio/subversion/changesets/1815 http://www.assembla.com/code/portaudio/subversion/changesets/1822

The new branch is here: https://subversion.assembla.com/svn/portaudio/portaudio/branches/alsa_hw_endian_subdevice

PortAudio-admin commented 12 years ago

Comment by @RossBencina

pa_linux_alsa.c.txt