Re: Sound glitch when using libvorbisfile and libao
Marshall Mason <[email protected]> Sun, 14 Jun 2015 10:02:31 -0700
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CANMExBQVUo5GH6cd+i3ewvWbPqd-E9Svi2T6Y-qv0VXCuEDMvA@mail.gmail.com> |
--===============1620512561== Content-Type: multipart/alternative; boundary=089e01228bb28f92e605187d4e5d --089e01228bb28f92e605187d4e5d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Gunter, I think this problem started happening when I upgraded from Debian Wheezy to Debian Jessie. If nothing looks amiss in my code, it probably is a sound driver problem. But since it works 100% of the time in ogg123, I feel I must have missed some corner case. My audio driver is almost always active. I usually have my music player going in the background when I do my testing. The problem surfaces more reliably after watching a bunch of YouTube videos, but not consistently enough to use it as a test case. I'll keep poking at it, and will give an update if I figure it out. Thanks for your responses. Marshall On Sun, Jun 14, 2015 at 12:51 AM, Gunter K=C3=B6nigsmann <gunter@peterpall.= de> wrote: > Dear Marshall, > > I spent most of yesterday finding out that wxWidget's wxStringArray > sometimes drops whitespace in a new entry depending on the character the > last entry ended with - so I know what you mean. But your code looks clea= n > and after listening to the bell for what felt too long I started using yo= ur > program as a regular audio player. > I too assume the problem lies in the audio driver your soundcard is using > and has to be triggered by using some exact timing. One potential way to > test for this would be keeping the audio driver active between running > instances of your program: You said the problem always turns up when > starting the playback. Is it possible for you to constantly play back > silent audio in the background while testing? Alsa can be configured to > automatically mix all streams that are being played back simultaneously a= nd > the sound servers all support this feature, too. > > Kind regards, > > Gunter. > --089e01228bb28f92e605187d4e5d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Gunter,<div>I think this problem started happening when= I upgraded from Debian Wheezy to Debian Jessie. If nothing looks amiss in = my code, it probably is a sound driver problem. But since it works 100% of = the time in ogg123, I feel I must have missed some corner case.</div><div><= br></div><div>My audio driver is almost always active. I usually have my mu= sic player going in the background when I do my testing. The problem surfac= es more reliably after watching a bunch of YouTube videos, but not consiste= ntly enough to use it as a test case.</div><div><br></div><div>I'll kee= p poking at it, and will give an update if I figure it out.</div><div><br><= /div><div>Thanks for your responses.</div><div><br></div><div>Marshall</div= ></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sun, Ju= n 14, 2015 at 12:51 AM, Gunter K=C3=B6nigsmann <span dir=3D"ltr"><<a hre= f=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&= gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 = 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Marshall,<div><br>= </div><div>I spent most of yesterday finding out that wxWidget's wxStri= ngArray sometimes drops whitespace in a new entry depending on the characte= r the last entry ended with - so I know what you mean. But your code looks = clean and after listening to the bell for what felt too long I started usin= g your program as a regular audio player.</div><div>I too assume the proble= m lies in the audio driver your soundcard is using and has to be triggered = by using some exact timing. One potential way to test for this would be kee= ping the audio driver active between running instances of your program: You= said the problem always turns up when starting the playback. Is it possibl= e for you to constantly play back silent audio in the background while test= ing? Alsa can be configured to automatically mix all streams that are being= played back simultaneously and the sound servers all support this feature,= too.</div><div><br></div><div>Kind regards,</div><div><br></div><div>=C2= =A0 =C2=A0 =C2=A0Gunter.</div></blockquote></div><br></div> --089e01228bb28f92e605187d4e5d-- --===============1620512561== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Vorbis-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis-dev --===============1620512561==--