Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
06-08-2010, 10:04 PM
(This post was last modified: 06-08-2010, 10:05 PM by Agent69.)
r1546
Work fine and fast, no slowdowns while playing sound effects(like some revisions ago) but music\voices not dumps in /tmp:
Code: 1059360 [Atrac3 Play Thread] WARN hle - Unimplemented NID function sceAtracSetHalfwayBuffer [0x3F6E26B5]
1059360 [Atrac3 Play Thread] WARN hle - IGNORING: sceAtracIsSecondBufferNeeded atracId=4114
1059360 [Atrac3 Play Thread] WARN hle - Unimplemented sceAtracGetBitrate: atracID = 4114, bitrate = 145076624
1062672 [FileManager Thread] WARN hle - IGNORING: __sceSasSetADSR sasCore=08a32a80, voice=0 0000000f 40000000 00000064 00000064 10000000
1063125 [user_main] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4114, loopNbr= -1
1063172 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4114, loopNbr= -1
1064969 [Atrac3 Play Thread] WARN hle - Unimplemented NID function sceAtracSetHalfwayBuffer [0x3F6E26B5]
1064969 [Atrac3 Play Thread] WARN hle - IGNORING: sceAtracIsSecondBufferNeeded atracId=4117
1064985 [Atrac3 Play Thread] WARN hle - Unimplemented sceAtracGetBitrate: atracID = 4117, bitrate = 145404560
1065000 [user_main] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr= 0
1065016 [Atrac3 Play Thread] WARN hle - PARTIAL: sceAtracSetLoopNum: atracID = 4117, loopNbr= 0
Posts: 893
Threads: 15
Joined: Nov 2009
Reputation:
14
Did you enable "Use JPCSP Connector"? This is now needed to dump the audio files.
Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
Yes. of course. No any dump's files
Posts: 893
Threads: 15
Joined: Nov 2009
Reputation:
14
(06-09-2010, 06:16 PM)Agent69 Wrote: Yes. of course. No any dump's files
Strange...
I'll take a look at the ATRAC functions again.
Posts: 893
Threads: 15
Joined: Nov 2009
Reputation:
14
Is it working now on r1547?
Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
Yeah. now dumping *.at3 is work. Thanks man. Tomorrow i try to decode it
Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
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
Sample.7z (Size: 121.35 KB / Downloads: 189)
Posts: 893
Threads: 15
Joined: Nov 2009
Reputation:
14
(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?
Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
06-12-2010, 05:18 PM
(This post was last modified: 06-12-2010, 05:31 PM by Agent69.)
Yes, now almost files dumps correct: at the same time can dump only one file (If during the dump music will start dump voice, there will be two corrupted files)
While play *.decoded music, voices dumps ok. But dump music stop, if start play *.decoded voice
ps. Of course bacground musig not loop
pps. after today revisons (r1555 -r1557) emu may randomly freze in cutscenes.
ppps. All at.3 data in this game encoded in 0x0270 (Sony SCX). atrac3.acm and ffmpeg can decode it FFmpeg give poor sound quality, atrac3.acm decode perfect.
Posts: 42
Threads: 4
Joined: May 2010
Reputation:
0
Also small hack to fix pitch
/src/jpcsp/HLE/modules150/sceAtrac3plus.java
Code: 348 - sampleRate = 48000;
348 + sampleRate = 44100;
|