Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Tech (https://forum.musepack.net/forumdisplay.php?f=7)
-   -   SV8 decoder lag (https://forum.musepack.net/showthread.php?t=590)

hrimfaxi 25 April 2009 06:06 am

SV8 decoder lag
 
Hi, I am working on a Sony PlayStation Portable(PSP) homebrew musepack player. Lately I switched to the SV8 libmpcdec(r435) to decoder SV8 files. But it seems to have some decode lag problem playing old SV7 file while the old SV7 library wouldn't. The lag occurs when PSP storage device light is flashing.

PSP storage device(Memory Stick) has a limited (or unstable) read speed, IMOO if the reading buffer is too large, it will cause this problem.

After investigation, I modified libmpcdec/internal.h to

Code:

#define DEMUX_BUFFER_SIZE (32768 - MAX_FRAME_SIZE) // need some space as sand box
as half of the previous one. And now, It seems to be OK.

But I wonder whether this hack will hurt the decoder? Or is there another better way to bypass this problem?

r2d 25 April 2009 03:26 pm

No, this should not hurt the decoder as long as the header blocks fit in the buffer (so MAX_FRAME_SIZE should even be enough). I don't see a better (easy) way right now.


All times are GMT. The time now is 10:56 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2019, vBulletin Solutions Inc.