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
Sent: 06 April 2021 11:00
To: Zhou, Hui
Cc: alsa-user@lists.sourceforge.net
Subject: Re: [Alsa-user] arecord with mutiple aplay
You don't often get email from
alexan...@bouillot.org<mailto:alexan...@bouillot.org>. 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
mailto:alsa-user@lists.sourceforge.net>> 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
Alsa-user@lists.sourceforge.net<mailto:Alsa-user@lists.sourceforge.net>
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=04%7C01%7Chui.zhou%40kcl.ac.uk%7C1a8b699e3c6e48cbb95008d8f8e2d354%7C8370cf1416f34c16b83c724071654356%7C0%7C0%7C637533000383510486%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=bLQtwCCcsTAgIOCJMcQIs9x8BLu3auds5BiJFiDVfkk%3D=0>
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user