Re: [alsa-devel] Intermittent cut out on the video
From: cmst@live.com To: clemens@ladisch.de Subject: RE: [alsa-devel] Intermittent cut out on the video Date: Mon, 2 Dec 2013 09:44:16 +0000
Date: Thu, 28 Nov 2013 09:29:45 +0100 From: clemens@ladisch.de To: cmst@live.com; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Intermittent cut out on the video
Dolevo Jay wrote:
I have two sound cards on my system and I use the [multi plugin] to have audio from two jacks simultaneously.
The audio coming from the jack on the pc is cutting out intermittently. It just cuts out for a fraction of a second and continues as normal and after some time it happens again.
The two cards use different sample clocks, so it is not possible to feed them reliably from the same stream.
You would need software that measures that actual sample rate of both devices and resamples its output appropriately. Try using PulseAudio.
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
I have tried to apply pulseaudio but couldn't really manage it. Could you please tell me if I can fix it in the configuration file? I mean, for example, would it be solved if I resample the audio for the appropriate sound card in the asound.conf? What other option do I have other than pulseaudio?
Thanks a lot.
Dolevo Jay wrote:
You would need software that measures that actual sample rate of both devices and resamples its output appropriately. Try using PulseAudio.
I have tried to apply pulseaudio but couldn't really manage it.
http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index31h3
Regards, Clemens
Date: Tue, 3 Dec 2013 14:13:56 +0100 From: clemens@ladisch.de To: cmst@live.com; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Intermittent cut out on the video
Dolevo Jay wrote:
You would need software that measures that actual sample rate of both devices and resamples its output appropriately. Try using PulseAudio.
I have tried to apply pulseaudio but couldn't really manage it.
http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index31h3
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I think this is not what I want. I don't want to combine the two sound cards. I want to route the audio being played on one sound card to the other sound card. I have found the following answer: http://askubuntu.com/questions/168333/routing-sound-from-different-cards-to-...
So with the following line:
pactl load-module module-loopback source=<name_or_index> sink=<name_or_index>
I should be able to achieve what I want. However, I know no pulseaudio and I got some issues with it already.
For example, I start the pulseaudio with
root@dolevo:~# start-pulseaudio-kde W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
I guess it starts working properly after this call. However, I call
pactl list
to get the list of the devices but I get
root@dolevo:~# pactl list Connection failure: Connection refused pa_context_connect() failed: Connection refused
So, what should I put as source and sink? I have already tried calling the following:
pactl load-module module-loopback source=hw:1,0 sink=0,3
However I again receive:
Connection failure: Connection refused pa_context_connect() failed: Connection refused
I would appreciate if you could help.
From: cmst@live.com To: alsa-devel@alsa-project.org Date: Tue, 3 Dec 2013 15:43:39 +0000 Subject: Re: [alsa-devel] Intermittent cut out on the video
Date: Tue, 3 Dec 2013 14:13:56 +0100 From: clemens@ladisch.de To: cmst@live.com; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Intermittent cut out on the video
Dolevo Jay wrote:
You would need software that measures that actual sample rate of both devices and resamples its output appropriately. Try using PulseAudio.
I have tried to apply pulseaudio but couldn't really manage it.
http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index31h3
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I think this is not what I want. I don't want to combine the two sound cards. I want to route the audio being played on one sound card to the other sound card. I have found the following answer: http://askubuntu.com/questions/168333/routing-sound-from-different-cards-to-...
So with the following line:
pactl load-module module-loopback source=<name_or_index> sink=<name_or_index>
I should be able to achieve what I want. However, I know no pulseaudio and I got some issues with it already.
For example, I start the pulseaudio with
root@dolevo:~# start-pulseaudio-kde W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
I guess it starts working properly after this call. However, I call
pactl list
to get the list of the devices but I get
root@dolevo:~# pactl list Connection failure: Connection refused pa_context_connect() failed: Connection refused
So, what should I put as source and sink? I have already tried calling the following:
pactl load-module module-loopback source=hw:1,0 sink=0,3
However I again receive:
Connection failure: Connection refused pa_context_connect() failed: Connection refused
I would appreciate if you could help. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Clemens,
Could you please tell me where I can get some help about pulseaudio? I tried pulseaudio-discuss but my question is not even posted there yet.
Since my question is now related to the pulseaudio, I have asked my current question to: http://stackoverflow.com/questions/20370418/pulseaudio-connection-issue
I'd appreciate your help.
Regards,
From: cmst@live.com To: alsa-devel@alsa-project.org Date: Wed, 4 Dec 2013 10:08:15 +0000 Subject: Re: [alsa-devel] Intermittent cut out on the video
From: cmst@live.com To: alsa-devel@alsa-project.org Date: Tue, 3 Dec 2013 15:43:39 +0000 Subject: Re: [alsa-devel] Intermittent cut out on the video
Date: Tue, 3 Dec 2013 14:13:56 +0100 From: clemens@ladisch.de To: cmst@live.com; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Intermittent cut out on the video
Dolevo Jay wrote:
You would need software that measures that actual sample rate of both devices and resamples its output appropriately. Try using PulseAudio.
I have tried to apply pulseaudio but couldn't really manage it.
http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index31h3
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I think this is not what I want. I don't want to combine the two sound cards. I want to route the audio being played on one sound card to the other sound card. I have found the following answer: http://askubuntu.com/questions/168333/routing-sound-from-different-cards-to-...
So with the following line:
pactl load-module module-loopback source=<name_or_index> sink=<name_or_index>
I should be able to achieve what I want. However, I know no pulseaudio and I got some issues with it already.
For example, I start the pulseaudio with
root@dolevo:~# start-pulseaudio-kde W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
I guess it starts working properly after this call. However, I call
pactl list
to get the list of the devices but I get
root@dolevo:~# pactl list Connection failure: Connection refused pa_context_connect() failed: Connection refused
So, what should I put as source and sink? I have already tried calling the following:
pactl load-module module-loopback source=hw:1,0 sink=0,3
However I again receive:
Connection failure: Connection refused pa_context_connect() failed: Connection refused
I would appreciate if you could help. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Clemens,
Could you please tell me where I can get some help about pulseaudio? I tried pulseaudio-discuss but my question is not even posted there yet.
Since my question is now related to the pulseaudio, I have asked my current question to: http://stackoverflow.com/questions/20370418/pulseaudio-connection-issue
I'd appreciate your help.
Regards, _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I have come to conclusion that this issue is way more complex that I thought and won't be "possible" to implement even with the help of pulseaudio since I will require a complete new implementation. I thought that it would be solved by a configuration file in pulseaudio but apprently some development/code writing will be needed as well.
What I don't understand, ok one of the sound card gets drifted over time if two sound cards are employed in the system and therefore I got cut outs but why doesn't this happen if I use the same sound card alone? I mean the audio from my application is perfect if I use only the a sound card. But it produces intermittent cut outs if I use another sound card (b) together with a. Shouldn't have I gotten also the cut outs in the first casae?
Please enlighten me.
Dolevo Jay wrote:
I have come to conclusion that this issue is way more complex that I thought and won't be "possible" to implement even with the help of pulseaudio
Doesn't module-combine-sink work?
What I don't understand, ok one of the sound card gets drifted over time if two sound cards are employed in the system and therefore I got cut outs but why doesn't this happen if I use the same sound card alone?
The playback speed is determined by the hardware, not by the application. When an application tries to write more data than is currently possible, ALSA will just wait.
This does not work if the playback is coming in real time from a source whose speed you cannot control, such as an S/PDIF input or broadcasting TV. In that case, you eventually get the same problem.
Regards, Clemens
participants (2)
-
Clemens Ladisch
-
Dolevo Jay