[Portaudio] using all channels of class compliant RME Babyface Pro USB audio interface

Be be.0 at gmx.com
Tue Dec 15 00:34:32 EST 2015


I added "export PA_ALSA_PLUGHW=1" to /etc/bashrc , logged out, and 
logged back in and it works. I still don't understand why using the 
plughw device works but the hw device doesn't. I know plughw converts 
between sample formats automatically, but I don't know what else it does 
(and it's not like there's any ALSA documentation that explains it...).

Thanks for your help.

On 12/10/2015 02:50 PM, Alan Horstmann wrote:
> So it would be one option to add the 'plug' plugin in a custom asoundrc, as
> that is what was missing in your previous version.  I'm guessing something
> along the lines of [totally untested]:
> 		type plug
> 		slave.pcm {
> 			type hw
> 			card 1
> 			device 0
> 		}
> You should be able to research it; I've come across something similar for the
> Audio4DJ device and Mixxx.  There's a line you can add to prevent sample-rate
> conversion, which the 'plug' plugin is otherwise capable of doing.
>
> Regards
>
> Alan
>
> On Thursday 10 December 2015 13:59, Be wrote:
>> Huh. I just tried it again with PA_ALSA_PLUGHW=1 and it worked. Why?
>>
>> Debug [Main]: SoundManager::setupDevices()
>> Debug [Main]: SoundDeviceNetwork::open() "Network stream"
>> Debug [Main]: framesPerBuffer: 256
>> Debug [Main]: Requested sample rate:  44100 Hz, latency: 5.80499 ms
>> Debug [Main]: SoundDevicePortAudio::open() "2, Babyface Pro (70785713):
>> USB Audio (plughw:1,0)"
>> Debug [Main]: framesPerBuffer: 256
>> Debug [Main]: Requested sample rate:  44100 Hz, latency: 5.80499 ms
>> Debug [Main]: Output channels: 4 | Input channels: 0
>> Debug [Main]: Opening stream with id 2
>> Debug [LibraryScanner 1]: LibraryHashDAO::initialize
>> LibraryScanner(0x38a50080, name = "LibraryScanner 1") "LIBRARY_SCANNER"
>> Debug [LibraryScanner 1]: CueDAO::initialize LibraryScanner(0x38a50080,
>> name = "LibraryScanner 1") "LIBRARY_SCANNER"
>> Debug [LibraryScanner 1]: TrackDAO::initialize
>> LibraryScanner(0x38a50080, name = "LibraryScanner 1") "LIBRARY_SCANNER"
>> Debug [LibraryScanner 1]: DirectoryDAO::initialize
>> LibraryScanner(0x38a50080, name = "LibraryScanner 1") "LIBRARY_SCANNER"
>> Debug [LibraryScanner 1]: LibraryScanner event loop starting.
>> Debug [Main]: Opened PortAudio stream successfully... starting
>> Debug [Main]: Dynamically loaded PortAudio library
>> Debug [Main]: PortAudio: Started stream successfully
>> Debug [Main]:    Actual sample rate:  44100 Hz, latency: 5.80499 ms
>> Debug [Main]: Using "Babyface Pro (70785713): USB Audio (plughw:1,0)" as
>> output sound device clock reference
>> Debug [Main]: 2 output sound devices opened
>> Debug [Main]: 0 input  sound devices opened
>>
>> On 12/10/2015 03:45 AM, Alan Horstmann wrote:
>>> Can you show the Mixxx debug output in this case, like in the original
>>> post, please.
>>>
>>> Regards
>>>
>>> Alan
>>>
>>> On Thursday 10 December 2015 08:50, Be wrote:
>>>> I already tried that. The same issue happened.
>>>>
>>>> On 12/10/2015 02:53 AM, Alan Horstmann wrote:
>>>>> Just a quick reply, in the middle of other things..
>>>>>
>>>>> The 'hw:' devices/alsa-pcms require the correct number of channels, and
>>>>> format etc.  As a test, set an env variable
>>>>> 	export PA_ALSA_PLUGHW=1
>>>>> and run Mixxx (from that terminal or environment).  The pcm should list
>>>>> as 'plughw:' and will open any number of channels.  This may be the
>>>>> issue.  It is what I have been addressing in the Portaudio branch
>>>>> 'Alsa-experimental'.
>>>>>
>>>>> Give it a try and report back, please.
>>>>>
>>>>> Regards
>>>>>
>>>>> Alan
>>>>>
>>>>> On Thursday 10 December 2015 08:37, Be wrote:
>>>>>> No, only channels 1-4. Channels 1-2 are the main XLR outputs, channels
>>>>>> 3-4 are the headphone outputs, channels 5-12 are the ADAT outputs (or
>>>>>> 5-6 for SPDIF).
>>>>>>
>>>>>> On 12/10/2015 02:36 AM, Ross Bencina wrote:
>>>>>>> Sorry, seems that my message got truncated. My question was:
>>>>>>>
>>>>>>> Did you try to open all 12 channels?
>>>>>>>
>>>>>>> Ross.
>>>>>>>
>>>>>>> On 10/12/2015 7:22 PM, Ross Bencina wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> On 10/12/2015 5:37 PM, Be wrote:
>>>>>>>>> Debug [Main]: SoundManager::setupDevices()
>>>>>>>>> Debug [Main]: SoundDevicePortAudio::open() "2, Babyface Pro
>>>>>>>>> (70785713): USB Audio (hw:1,0)"
>>>>>>>>> Debug [Main]: framesPerBuffer: 256
>>>>>>>>> Debug [Main]: Requested sample rate:  44100 Hz, latency: 5.80499 ms
>>>>>>>>> Debug [Main]: Output channels: 4 | Input channels: 0
>>>>>>>>> Debug [Main]: Opening stream with id 2
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Portaudio mailing list
>>>>>>> Portaudio at lists.columbia.edu
>>>>>>> https://lists.columbia.edu/mailman/listinfo/portaudio
>>>>>>
>>>>>> _______________________________________________
>>>>>> Portaudio mailing list
>>>>>> Portaudio at lists.columbia.edu
>>>>>> https://lists.columbia.edu/mailman/listinfo/portaudio
>>>>>
>>>>> _______________________________________________
>>>>> Portaudio mailing list
>>>>> Portaudio at lists.columbia.edu
>>>>> https://lists.columbia.edu/mailman/listinfo/portaudio
>>>>
>>>> _______________________________________________
>>>> Portaudio mailing list
>>>> Portaudio at lists.columbia.edu
>>>> https://lists.columbia.edu/mailman/listinfo/portaudio
>>>
>>> _______________________________________________
>>> Portaudio mailing list
>>> Portaudio at lists.columbia.edu
>>> https://lists.columbia.edu/mailman/listinfo/portaudio
>>
>> _______________________________________________
>> Portaudio mailing list
>> Portaudio at lists.columbia.edu
>> https://lists.columbia.edu/mailman/listinfo/portaudio
> _______________________________________________
> Portaudio mailing list
> Portaudio at lists.columbia.edu
> https://lists.columbia.edu/mailman/listinfo/portaudio
>


More information about the Portaudio mailing list