* Intermittent cut out on the video @ 2013-11-26 16:38 Dolevo Jay 2013-11-28 5:47 ` Dolevo Jay 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-11-26 16:38 UTC (permalink / raw) To: alsa-devel@alsa-project.org Hi experts, In my system, I use two headphone jacks to connect my speakers, one is to the jack on the pc itself and the other one is to the jack located on the monitor which I connect to the same pc with hdmi cable. I have two sound cards on my system and I use the following asound.conf to have audio from two jacks simultaneously. http://pastebin.com/2yd6EW8C As you see, I also use dmix because I have multiple of audio sources coming and I mix them. However, I now have the following problem. I connect two speakers to the each jack and start hearing an audio stream. 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 frequency of the occurrence increases over time. I have absolutely no problem with the audio from the jack on the display. Could anyone shed some light on this issue? In my opinion, this is a sort of configuration issue since I have no problem at one source while having at the other source. Thanks in advance, Regards, Dolevo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-11-26 16:38 Intermittent cut out on the video Dolevo Jay @ 2013-11-28 5:47 ` Dolevo Jay 2013-11-28 8:29 ` Clemens Ladisch 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-11-28 5:47 UTC (permalink / raw) To: alsa-devel@alsa-project.org Dear all, I'd appreciate if you could at least comment on the issue. Thanks. > From: cmst@live.com > To: alsa-devel@alsa-project.org > Date: Tue, 26 Nov 2013 16:38:25 +0000 > Subject: [alsa-devel] Intermittent cut out on the video > > Hi experts, > > In my system, I use two headphone jacks to connect my speakers, one is to the jack on the pc itself and the other one is to the jack located on the monitor which I connect to the same pc with hdmi cable. I have two sound cards on my system and I use the following asound.conf to have audio from two jacks simultaneously. > http://pastebin.com/2yd6EW8C > > As you see, I also use dmix because I have multiple of audio sources coming and I mix them. > > However, I now have the following problem. I connect two speakers to the each jack and start hearing an audio stream. 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 frequency of the occurrence increases over time. I have absolutely no problem with the audio from the jack on the display. > Could anyone shed some light on this issue? In my opinion, this is a sort of configuration issue since I have no problem at one source while having at the other source. > > Thanks in advance, > Regards, > > Dolevo > > > > > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-11-28 5:47 ` Dolevo Jay @ 2013-11-28 8:29 ` Clemens Ladisch [not found] ` <DUB122-W22A2B2F1172BAEC057087BAAEA0@phx.gbl> 0 siblings, 1 reply; 9+ messages in thread From: Clemens Ladisch @ 2013-11-28 8:29 UTC (permalink / raw) To: Dolevo Jay, alsa-devel 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <DUB122-W22A2B2F1172BAEC057087BAAEA0@phx.gbl>]
* Re: Intermittent cut out on the video [not found] ` <DUB122-W22A2B2F1172BAEC057087BAAEA0@phx.gbl> @ 2013-12-02 9:47 ` Dolevo Jay 2013-12-03 13:13 ` Clemens Ladisch 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-12-02 9:47 UTC (permalink / raw) To: alsa-devel@alsa-project.org 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-12-02 9:47 ` Dolevo Jay @ 2013-12-03 13:13 ` Clemens Ladisch 2013-12-03 15:43 ` Dolevo Jay 0 siblings, 1 reply; 9+ messages in thread From: Clemens Ladisch @ 2013-12-03 13:13 UTC (permalink / raw) To: Dolevo Jay, alsa-devel@alsa-project.org 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-12-03 13:13 ` Clemens Ladisch @ 2013-12-03 15:43 ` Dolevo Jay 2013-12-04 10:08 ` Dolevo Jay 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-12-03 15:43 UTC (permalink / raw) To: alsa-devel@alsa-project.org > 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-a-single-output 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-12-03 15:43 ` Dolevo Jay @ 2013-12-04 10:08 ` Dolevo Jay 2013-12-06 8:52 ` Dolevo Jay 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-12-04 10:08 UTC (permalink / raw) To: alsa-devel@alsa-project.org > 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-a-single-output > > 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, ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-12-04 10:08 ` Dolevo Jay @ 2013-12-06 8:52 ` Dolevo Jay 2013-12-06 9:06 ` Clemens Ladisch 0 siblings, 1 reply; 9+ messages in thread From: Dolevo Jay @ 2013-12-06 8:52 UTC (permalink / raw) To: alsa-devel@alsa-project.org > 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-a-single-output > > > > 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Intermittent cut out on the video 2013-12-06 8:52 ` Dolevo Jay @ 2013-12-06 9:06 ` Clemens Ladisch 0 siblings, 0 replies; 9+ messages in thread From: Clemens Ladisch @ 2013-12-06 9:06 UTC (permalink / raw) To: Dolevo Jay, alsa-devel@alsa-project.org 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-12-06 9:06 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 16:38 Intermittent cut out on the video Dolevo Jay
2013-11-28 5:47 ` Dolevo Jay
2013-11-28 8:29 ` Clemens Ladisch
[not found] ` <DUB122-W22A2B2F1172BAEC057087BAAEA0@phx.gbl>
2013-12-02 9:47 ` Dolevo Jay
2013-12-03 13:13 ` Clemens Ladisch
2013-12-03 15:43 ` Dolevo Jay
2013-12-04 10:08 ` Dolevo Jay
2013-12-06 8:52 ` Dolevo Jay
2013-12-06 9:06 ` Clemens Ladisch
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.