[Vorbis] ogg audio streaming problem

Peter Harris pharris at opentext.com
Thu Jun 4 08:31:54 PDT 2009


leon deng wrote:
> I am an ogg format starter, and I am implementing ogg audio streaming.
> I meet some problems for streaming.

>         callbacks.read_func = &oggReadCallback;
>         callbacks.seek_func = &oggSeekCallback;
>         callbacks.close_func = &oggCloseCallback;
>         callbacks.tell_func = &oggTellCallback;

> The first chunk data is played excellent, however, after that , it gives
> me static noise.

> if the vf->seekable = 1, is it the problem for streaming? How can I
> achieve ogg streaming?

Yes, that is your problem. "seekable" is the opposite of "streaming".
Either set callbacks.seek_func to NULL, or make sure your
oggSeekCallback returns -1.

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://www.opentext.com/connectivity
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the Vorbis mailing list