Musepack Forums  

Go Back   Musepack Forums > Main > Tech

Reply
 
Thread Tools Search this Thread Display Modes
Old 25 April 2009, 06:06 am   #1
hrimfaxi
Member
 
Join Date: Feb 2008
Posts: 1
Question 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?
hrimfaxi is offline   Reply With Quote
Old 25 April 2009, 03:26 pm   #2
r2d
Musepack developer
 
Join Date: Sep 2006
Location: Villeurbanne - France
Posts: 36
Default

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.
r2d is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:05 pm.


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