marzullo maio
2007-Jun-01 11:01 UTC
[Speex-dev] Decoder and discarded frames..., system hangs
Do i always need to tell the decoder that some packets has been lost? I noticed that if i discard packets without passing NULL and advising the decoder, sometimes my system hangs and i need to reset my PDA. Since the decoder is mantaining a state, i suppose i always need to tell it a packet has been discarded through a sequence number check. Or can i just pass to speex_decode_int whatever i receive without worrying about lost frames? Thanks. --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070601/e1fffa55/attachment.html
Jean-Marc Valin
2007-Jun-01 18:47 UTC
[Speex-dev] Decoder and discarded frames..., system hangs
You need to let the know packets are missing so it can generate something meaningful instead. Otherwise, you'll also have less packets to play, which means "something" has to be inserted (zeros, clicks, the content of the kernel memory, ...) instead. As for crashing, it shouldn't happen and I wouldn't be surprised if it had more to do with a soundcard underrun occuring from the fact you're not replacing the packets by anything. Jean-Marc marzullo maio a ?crit :> Do i always need to tell the decoder that some packets has been lost? > I noticed that if i discard packets without passing NULL and advising the decoder, sometimes my system hangs and i need to reset my PDA. > > Since the decoder is mantaining a state, i suppose i always need to tell it a packet has been discarded through a sequence number check. Or can i just pass to speex_decode_int whatever i receive without worrying about lost frames? > > Thanks. > > > --------------------------------- > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
marzullo maio
2007-Jun-02 16:13 UTC
[Speex-dev] Decoder and discarded frames..., system hangs
I finally solved the problem, after some debug. You were right, it wasn't the decoder. It was the soundcard underrun. If i discard too many packets, wheter they're silenced or not, the driver returns some errors and my application crashes. I need always to feed something (i.e. a silence or whatever) sometimes or the driver will complain. That's it. Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> ha scritto: You need to let the know packets are missing so it can generate something meaningful instead. Otherwise, you'll also have less packets to play, which means "something" has to be inserted (zeros, clicks, the content of the kernel memory, ...) instead. As for crashing, it shouldn't happen and I wouldn't be surprised if it had more to do with a soundcard underrun occuring from the fact you're not replacing the packets by anything. Jean-Marc marzullo maio a ?crit :> Do i always need to tell the decoder that some packets has been lost? > I noticed that if i discard packets without passing NULL and advising the decoder, sometimes my system hangs and i need to reset my PDA. > > Since the decoder is mantaining a state, i suppose i always need to tell it a packet has been discarded through a sequence number check. Or can i just pass to speex_decode_int whatever i receive without worrying about lost frames? > > Thanks. > > > --------------------------------- > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev--------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070603/b881733b/attachment.html