This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disgaea Afternoon of Darkness ULUS10308
#1
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
       
Reply
#2
Did you enable "Use JPCSP Connector"? This is now needed to dump the audio files.
Reply
#3
Yes. of course. No any dump's files Sad
Reply
#4
(06-09-2010, 06:16 PM)Agent69 Wrote: Yes. of course. No any dump's files Sad

Strange...
I'll take a look at the ATRAC functions again.
Reply
#5
Is it working now on r1547?
Reply
#6
Yeah. now dumping *.at3 is work. Thanks man. Tomorrow i try to decode it
Reply
#7
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

.7z   Sample.7z (Size: 121.35 KB / Downloads: 207)
Reply
#8
(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?
Reply
#9
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 Big Grin
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.
Reply
#10
Also small hack to fix pitch

/src/jpcsp/HLE/modules150/sceAtrac3plus.java
Code:
348 -        sampleRate = 48000;
348 +        sampleRate = 44100;
Reply


Forum Jump:


Users browsing this thread: 11 Guest(s)