Re: Sound glitch when using libvorbisfile and libao

Gunter Königsmann <[email protected]> Sun, 14 Jun 2015 07:14:25 +0200
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
--===============0556409945==
Content-Type: multipart/alternative; boundary="=-VHa+tdojtHpCHmQpJ+89"

--=-VHa+tdojtHpCHmQpJ+89
Content-Type: text/plain; charset=utf-8; format=flowed

How can this problem be reproduced? If you have an specific .ogg file 
that gives problems  it would be helpful to have them so we can try to 
reproduce 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 if there's something I 
> overlooked.
> 
> http://pastie.org/10239629
> 
> (Debian Jessie, libvorbisfile 1.3.4, libao-1.1.0)
> 
> Thanks,
> Marshall

--=-VHa+tdojtHpCHmQpJ+89
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

How can this problem be reproduced? If you have an specific .ogg file that =
gives problems&nbsp;&nbsp;it would be helpful to have them so we can try to=
 reproduce them.<div><br></div><div>Kind regards,</div><div><br></div><div>=
&nbsp; &nbsp;Gunter.&nbsp;<div><br>On So, Jun 14, 2015 at 7:10 , Marshall M=
ason &lt;[email protected]&gt; wrote:<br>
<blockquote type=3D"cite"><div dir=3D"ltr">Hi there,<div>I've been grapplin=
g with this for some time, so I'm finally breaking down and trying this lis=
t.</div><div><br></div><div>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 a=
ll it does is make a strange sound and quickly finishes. I cannot dependabl=
y 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 an=
d tell me if there's something I overlooked.</div><div><br></div><div><a hr=
ef=3D"http://pastie.org/10239629">http://pastie.org/10239629</a><br></div><=
div><br></div><div>(Debian Jessie, libvorbisfile 1.3.4, libao-1.1.0)</div><=
div><br></div><div>Thanks,</div><div>Marshall</div></div>
</blockquote></div></div>=

--=-VHa+tdojtHpCHmQpJ+89--


--===============0556409945==
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

--===============0556409945==--