Re: arecord with mutiple aplay

"Zhou, Hui via Alsa-user" <[email protected]> Tue, 6 Apr 2021 22:54:49 +0000
Newsgroups gmane.linux.alsa.user
Message-ID <DBAPR03MB6504A134EEBAAF5733379F1AD0769@DBAPR03MB6504.eurprd03.prod.outlook.com>
Dear Alexandre,

Thank you for your suggestion!

I found the problem is the FIFO can only be read by one process instead of multiple process, and I have changed to use command "tee" to implement it.

Best regards,
Hui


From: Alexandre Bouillot <[email protected]>
Sent: 06 April 2021 11:00
To: Zhou, Hui <[email protected]>
Cc: [email protected]
Subject: Re: [Alsa-user] arecord with mutiple aplay

You don't often get email from [email protected]<mailto:[email protected]>. Learn why this is important<http://aka.ms/LearnAboutSenderIdentification>
Feedback<http://aka.ms/SafetyTipsFeedback>
Dear Hui,

One idea, not sure it will address your exact issue, but I saw the platform running ALSA might not be powerful enough to cope will all the data.

I had the issue with multiple record sessions with different audio cards on Rapberry Pi 3 where one record and simultaneous play worked fine, but when adding new channels shows issues. I since then moved to a new HW (a PC in my case) and been able to cope with 3 simultaneous channels with one play and one record on each.

Best,
Alexandre

Le ven. 2 avr. 2021 à 14:46, Zhou, Hui via Alsa-user <[email protected]<mailto:[email protected]>> a écrit :
Dear community,

I am currently working on streaming one input audio to multiple output speakers.

Here is the procedures:

mkfifo audio.wav
arecord -D "input device" audio.wav
aplay -D "speaker1" audio.wav
aplay -D "speaker2" audio.wav

The problem is once I run the "aplay -D "speaker2" audio.wav", the audio in two speakers becomes intermittent.

But there is no problem when I only play on speaker1.

Could anyone help me on this?

Thanks!

Best regards,
Hui
_______________________________________________
Alsa-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/alsa-user<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Falsa-user&data=04%7C01%7Chui.zhou%40kcl.ac.uk%7C1a8b699e3c6e48cbb95008d8f8e2d354%7C8370cf1416f34c16b83c724071654356%7C0%7C0%7C637533000383510486%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bLQtwCCcsTAgIOCJMcQIs9x8BLu3auds5BiJFiDVfkk%3D&reserved=0>

_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user