06-10-2010, 07:49 PM
(06-10-2010, 06:31 PM)Agent69 Wrote: Strange:
bufferSize=0x40000, fileSize < bufferSize, but all decoded voices tracks have length 1.4 sec ( ~250kb for file, like buffer size, but it raw pcm file...). Maybe trouble in jpcspconnector...
Code:376844 [Atrac3 Play Thread] INFO hle - hleAtracSetData atracID=4117, bufferSize=0x40000, fileSize=10b4c
376860 [Atrac3 Play Thread] WARN hle - IGNORING: sceAtracIsSecondBufferNeeded atracId=4117
376860 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracGetBitrate: atracID = 4117, bitrateAddr =0x8aab290
376875 [user_main] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr = 0
376891 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr = 0
376891 [Atrac3 Play Thread] INFO runtime - Thread exit detected SceUID=1016 name:'Atrac3 Play Thread' return:0x0
665735 [Atrac3 Play Thread] INFO hle - hleIoOpen filename = disc0:/PSP_GAME/USRDIR/DATA.DAT flags = 1 permissions = 00
665750 [SceIofileAsync] INFO hle - Running dummy async thread!
665750 [SceIofileAsync] INFO runtime - Thread exit detected SceUID=109d name:'SceIofileAsync' return:0x0
665766 [Atrac3 Play Thread] INFO hle - hleAtracSetData atracID=4117, bufferSize=0x40000, fileSize=73cc
665781 [Atrac3 Play Thread] WARN hle - IGNORING: sceAtracIsSecondBufferNeeded atracId=4117
665781 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracGetBitrate: atracID = 4117, bitrateAddr =0x8aab290
665797 [user_main] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr = 0
665813 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr = 0
665828 [Atrac3 Play Thread] INFO runtime - Thread exit detected SceUID=1016 name:'Atrac3 Play Thread' return:0x0
That's happening due to sceAtracSetHalfwayBuffer only using a part of the buffer. I checked the sample you posted and it has "null" data at the end of the .at3 file.
I've set this function to use the right value in r1550. Is it correct now?