Re: Sound glitch when using libvorbisfile and libao
Marshall Mason <[email protected]> Sat, 13 Jun 2015 22:38:10 -0700
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CANMExBQM0hOh5JFznez4y9vR0ccesxdAeXQUfq_iJOD1WsurHQ@mail.gmail.com> |
--===============1881328063== Content-Type: multipart/alternative; boundary=001a11c37bbe1e8a32051873bf8b --001a11c37bbe1e8a32051873bf8b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Gunter, Thank you for your quick response. As I mentioned in the email, I cannot dependably reproduce it. It comes and goes, and I just have to wait for it to come up before I can try to debug it. I've found it tends to happen when I've been taxing my sound driver, but this isn't consistent either. My inability to consistently reproduce this has made it a nasty bug for me to investigate. I was hoping that something would be immediately obvious in my code to those who know these libraries very well. I have the feeling it has something to do with buffering. If I decode the Ogg Vorbis file and dump it into a raw file, and then read it in again and feed it to ao_play, the problem goes away. I have a simple Ogg Vorbis file I am using for testing, which I sent to you in a private email. I have no server space on which to store it. Thanks, Marshall On Sat, Jun 13, 2015 at 10:14 PM, Gunter K=C3=B6nigsmann <gunter@peterpall.= de> wrote: > How can this problem be reproduced? If you have an specific .ogg file tha= t > gives problems it would be helpful to have them so we can try to reprodu= ce > them. > > Kind regards, > > Gunter. > > On So, Jun 14, 2015 at 7:10 , Marshall Mason <[email protected]> > wrote: > > Hi there, > I've been grappling with this for some time, so I'm finally breaking down > and trying this list. > > I'm trying to integrate libvorbisfile and libao to create a simple sound > file player, a la ogg123. To do this, I borrowed heavily from ao_example.= c > and vorbisfile_example.c. I feed the buffer from ov_read into ao_play in = a > simple loop. It usually works, but occasionally all it does is make a > strange sound and quickly finishes. I cannot dependably reproduce it. The > same problem does not happen when I use ogg123, so I'm sure I'm doing > something wrong. I've combed through the ogg123 source code and couldn't > figure it out. I'm wondering if someone can look at my code and tell me i= f > there's something I overlooked. > > http://pastie.org/10239629 > > (Debian Jessie, libvorbisfile 1.3.4, libao-1.1.0) > > Thanks, > Marshall > > --001a11c37bbe1e8a32051873bf8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><span style=3D"font-size:12.8000001907349px">Hi Gunter,</s= pan><div style=3D"font-size:12.8000001907349px">Thank you for your quick re= sponse. As I mentioned in the email, I cannot dependably reproduce it. It c= omes and goes, and I just have to wait for it to come up before I can try t= o debug it. I've found it tends to happen when I've been taxing my = sound driver, but this isn't consistent either. My inability to consist= ently reproduce this has made it a nasty bug for me to investigate.</div><d= iv style=3D"font-size:12.8000001907349px"><br></div><div style=3D"font-size= :12.8000001907349px">I was hoping that something would be immediately obvio= us in my code to those who know these libraries very well. I have the feeli= ng it has something to do with buffering. If I decode the Ogg Vorbis file a= nd dump it into a raw file, and then read it in again and feed it to ao_pla= y, the problem goes away.</div><div style=3D"font-size:12.8000001907349px">= <br></div><div style=3D"font-size:12.8000001907349px">I have a simple Ogg V= orbis file I am using for testing, which I sent to you in a private email. = I have no server space on which to store it.</div><div style=3D"font-size:1= 2.8000001907349px"><br></div><div style=3D"font-size:12.8000001907349px">Th= anks,</div><div style=3D"font-size:12.8000001907349px">Marshall</div></div>= <div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Jun 13, 2= 015 at 10:14 PM, Gunter K=C3=B6nigsmann <span dir=3D"ltr"><<a href=3D"ma= ilto:[email protected]" target=3D"_blank">[email protected]</a>></sp= an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex">How can this problem be reprod= uced? If you have an specific .ogg file that gives problems=C2=A0=C2=A0it w= ould be helpful to have them so we can try to reproduce them.<div><br></div= ><div>Kind regards,</div><div><br></div><div>=C2=A0 =C2=A0Gunter.=C2=A0<div= ><div class=3D"h5"><div><br>On So, Jun 14, 2015 at 7:10 , Marshall Mason &l= t;<a href=3D"mailto:[email protected]" target=3D"_blank">marshallmas= [email protected]</a>> wrote:<br> <blockquote type=3D"cite"><div dir=3D"ltr">Hi there,<div>I've been grap= pling with this for some time, so I'm finally breaking down and trying = this list.</div><div><br></div><div>I'm trying to integrate libvorbisfi= le and libao to create a simple sound file player, a la ogg123. To do this,= I borrowed heavily from ao_example.c and vorbisfile_example.c. I feed the = buffer from ov_read into ao_play in a simple loop. It usually works, but oc= casionally all it does is make a strange sound and quickly finishes. I cann= ot dependably reproduce it. The same problem does not happen when I use ogg= 123, so I'm sure I'm doing something wrong. I've combed through= the ogg123 source code and couldn't figure it out. I'm wondering i= f someone can look at my code and tell me if there's something I overlo= oked.</div><div><br></div><div><a href=3D"http://pastie.org/10239629" targe= t=3D"_blank">http://pastie.org/10239629</a><br></div><div><br></div><div>(D= ebian Jessie, libvorbisfile 1.3.4, libao-1.1.0)</div><div><br></div><div>Th= anks,</div><div>Marshall</div></div> </blockquote></div></div></div></div></blockquote></div><br></div> --001a11c37bbe1e8a32051873bf8b-- --===============1881328063== 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 --===============1881328063==--