search for: fish_sound_flush

Displaying 3 results from an estimated 3 matches for "fish_sound_flush".

2013 May 20
2
libfishsound: Bug in fish_sound_flush
I apologize if this is the wrong list for this, but after searching the available lists at xiph.org, this is the closest I could find. I ran into a bug in the example fishsound-encode.c program where it gets OGGZ_ERR_BAD_SERIALNO errors from oggz: fish_sound_flush (fsound); oggz_run (oggz); oggz_close (oggz); fish_sound_delete (fsound); After debugging, it appears that fish_sound_flush() doesn't actually flush anything from the codec, so the succeeding oggz_run() doesn't write the final packets to the oggz queue. Then, the oggz_close() is e...
2013 May 21
0
libfishsound: Bug in fish_sound_flush
....us> wrote: > I apologize if this is the wrong list for this, but after searching the > available lists at xiph.org, this is the closest I could find. > > I ran into a bug in the example fishsound-encode.c program where it gets > OGGZ_ERR_BAD_SERIALNO errors from oggz: > > fish_sound_flush (fsound); > oggz_run (oggz); > > oggz_close (oggz); > > fish_sound_delete (fsound); > > After debugging, it appears that fish_sound_flush() doesn't actually flush > anything from the codec, so the succeeding oggz_run() doesn't write the > final packets to th...
2013 May 20
0
libfishsound/liboggz: How to properly set e_o_s marker when encoding?
...ackets my FishSoundEncoded callback will receive as a result. Therefore, how can I know which packet is indeed the last and therefore set the e_o_s flag appropriately? There seems to me no mechanism within FishSound to do this. After thinking about it, I decided a good approach might be: a. fish_sound_flush() b. Let the callback queue all remaining packets via oggz_write_feed() c. Manually set the e_o_s packet on the final packet in each oggz internal stream queue. d. Call oggz_run() to flush the queues to the output file. Of course, this requires creating my own oggz function in order to...