[Vorbis-dev] Sound glitch when using libvorbisfile and libao

Marshall Mason
Sun, 14 Jun 2015 17:02:31 -0000

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?nigsmann <gunter at
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 clean
> and after listening to the bell for what felt too long I started using your
> 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 and
> the sound servers all support this feature, too.
>
> Kind regards,
>
>      Gunter.
>
-------------- next part --------------
An HTML attachment was scrubbed...