Re: ogg audio streaming problem

Peter Harris <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.general
Message-ID <[email protected]>
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
[email protected]            Toll Free: 1 877 359 4866
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.