[ogg-dev] fishsound decoded callback

Cameron Gorrie cglists at gmail.com
Mon Mar 20 09:56:17 PST 2006


Hey,

I've got a decoder set up with oggz/fishsound and things are mostly working
as expected. There is one problem, however, that I'd like your help with.

The constants FISH_SOUND_STOP_ERR, FISH_SOUND_CONTINUE, and
FISH_SOUND_STOP_OK are nowhere to be found. As far as I can tell, they have
never existed outside of the API documentation as they are nowhere to be
found on the web, either. Now, I've done a temporary workaround:

#define FISH_SOUND_STOP_ERR 1
#define FISH_SOUND_CONTINUE 0
#define FISH_SOUND_STOP_OK -1

Apart from the STOP_ERR code which I fabricated, I based these upon the
deprecated generic callback (I'm now using float_ilv). The problem is, they
don't work. Even if I return STOP_OK or STOP_ERR, I still get too much data
and it ends up crashing my program with a buffer overflow.

Does anyone know the correct values for these, or what I'm doing wrong, or
even where these are formally defined?

I hope I'm not the only one using this library...

Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20060320/34c659fc/attachment.html


More information about the ogg-dev mailing list