EmuNewz Network
Yet another at3+ encoder/decoder - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: Yet another at3+ encoder/decoder (/showthread.php?tid=137863)

Pages: 1 2 3 4 5 6


RE: Yet another at3+ encoder/decoder - Abelus - 03-29-2013

jame_peng, thanks, it works with mono at3, but the sound is really choppy Smile


RE: Yet another at3+ encoder/decoder - gid15 - 03-29-2013

(03-29-2013, 03:09 PM)gid15 Wrote: I've investigating the problem where mono audio is played as stereo (high pitched).
I've found a new parameter in r3078 controlling the mono/stereo for sceAtracLowLevel. Could you retest several games?

Thank you!


RE: Yet another at3+ encoder/decoder - serio - 03-29-2013

it's not working now.

the files are extracted and converted, but they aren't played by the emulator because the output filename is different.

Code:
56188 [AT3 play thread] ERROR me - java.io.FileNotFoundException: F:\emu\psp\_tmp\NPJH50222\Atrac\Atrac-00002980-09AC81C0.wav (The system cannot find the file specified)
56188 [AT3 play thread] ERROR me - MediaEngine: Invalid container format!
56188 [AT3 play thread] ERROR me - MediaEngine: No audio streams found!
the file in question is saved as Atrac-00002980-09AC81C0.oma.wav

i'm guessing the bat file needs few adjustments. this is probably related to atrac3plus2wav.exe part since it's the only one that can convert mono oma files.

replacing
rename %1.wav %2
with
move %1.wav %2
fixes it.

edit: after fixing the bat up, the sounds now work fine in ikkitosen. both mono and stereo ones play at the right pitch. nice work.


RE: Yet another at3+ encoder/decoder - jame_peng - 03-29-2013

(03-29-2013, 04:29 PM)gid15 Wrote:
(03-29-2013, 03:09 PM)gid15 Wrote: I've investigating the problem where mono audio is played as stereo (high pitched).
I've found a new parameter in r3078 controlling the mono/stereo for sceAtracLowLevel. Could you retest several games?

Thank you!

wow!gid ,congratulation!Big Grin
in the 3078 version(just tested the FATE:CCC game,because this game have many AT3+ audio data)
detail:there are a lot of AT3+ audio can playing now,but some of audio data likely incomplete,just play a little part of the AT3+ data。Smile


RE: Yet another at3+ encoder/decoder - gid15 - 03-29-2013

(03-29-2013, 04:34 PM)serio Wrote: replacing
rename %1.wav %2
with
move %1.wav %2
fixes it.
??? I'm wondering what is the difference?

(03-29-2013, 03:21 PM)serio Wrote: @gid:
while trying to fix the high pitched voice, can you also look at the at3/oma file naming/hashes? the emulator sometimes mistakes some files for others. i think the emulator will wrongly assume some files it's about to extract are the same as different ones it already extracted, maybe because of apparently identical hashes and will play the wrong file. the hash codes might be too simple, or there's some problem in their generation.
Could you point me to a specific game thread where I could find a log file?

Thank you!


RE: Yet another at3+ encoder/decoder - serio - 03-29-2013

i have this happening in ikkitousen. all i have to do is change the announcer voice actor, and things start to mess up.

one example is
Code:
44625 [AT3 play thread] INFO  hle.IoFileMgrForUser - hleIoOpen filename = disc0:/sce_lbn0x4f300_size0x23a0 flags = 1 permissions = 00
44641 [AT3 play thread] INFO  hle.sceAtrac3plus - hleAtracSetData atracID=1, buffer=0x09AC81C0, readSize=0x23A0, bufferSize=0x23A0, fileSize=0x23A0
44641 [AT3 play thread] INFO  hle - AT3+ data decoded by the external decoder.
45610 [AT3 play thread] INFO  hle.IoFileMgrForUser - hleIoOpen filename = disc0:/sce_lbn0x4ea80_size0x23a0 flags = 1 permissions = 00
45625 [AT3 play thread] INFO  hle.sceAtrac3plus - hleAtracSetData atracID=1, buffer=0x09AC81C0, readSize=0x23A0, bufferSize=0x23A0, fileSize=0x23A0
45625 [AT3 play thread] INFO  hle - AT3+ data decoded by the external decoder.
it should play a different voice sample for story mode and adhoc mode (it does on psp), but it uses the story mode one for both here (sce_lbn0x4ea80_size0x23a0 is the one for story mode. i think the sound from this one's used for both. the filename in temp is Atrac-000023A0-09A80180.wav).


RE: Yet another at3+ encoder/decoder - gid15 - 03-29-2013

(03-29-2013, 04:47 PM)gid15 Wrote:
(03-29-2013, 04:34 PM)serio Wrote: replacing
rename %1.wav %2
with
move %1.wav %2
fixes it.
??? I'm wondering what is the difference?
Fix now available in r3079.


RE: Yet another at3+ encoder/decoder - jame_peng - 03-29-2013

(03-29-2013, 04:34 PM)serio Wrote: it's not working now.

the files are extracted and converted, but they aren't played by the emulator because the output filename is different.

Code:
56188 [AT3 play thread] ERROR me - java.io.FileNotFoundException: F:\emu\psp\_tmp\NPJH50222\Atrac\Atrac-00002980-09AC81C0.wav (The system cannot find the file specified)
56188 [AT3 play thread] ERROR me - MediaEngine: Invalid container format!
56188 [AT3 play thread] ERROR me - MediaEngine: No audio streams found!
the file in question is saved as Atrac-00002980-09AC81C0.oma.wav

i'm guessing the bat file needs few adjustments. this is probably related to atrac3plus2wav.exe part since it's the only one that can convert mono oma files.

replacing
rename %1.wav %2
with
move %1.wav %2
fixes it.

edit: after fixing the bat up, the sounds now work fine in ikkitosen. both mono and stereo ones play at the right pitch. nice work.

awesome,with this change:All the AT3+ audio can playing now!Tongue
but strangely that some voice was confusing!


RE: Yet another at3+ encoder/decoder - gid15 - 03-29-2013

(03-29-2013, 04:56 PM)serio Wrote: i have this happening in ikkitousen. all i have to do is change the announcer voice actor, and things start to mess up.

one example is
Code:
44625 [AT3 play thread] INFO  hle.IoFileMgrForUser - hleIoOpen filename = disc0:/sce_lbn0x4f300_size0x23a0 flags = 1 permissions = 00
44641 [AT3 play thread] INFO  hle.sceAtrac3plus - hleAtracSetData atracID=1, buffer=0x09AC81C0, readSize=0x23A0, bufferSize=0x23A0, fileSize=0x23A0
44641 [AT3 play thread] INFO  hle - AT3+ data decoded by the external decoder.
45610 [AT3 play thread] INFO  hle.IoFileMgrForUser - hleIoOpen filename = disc0:/sce_lbn0x4ea80_size0x23a0 flags = 1 permissions = 00
45625 [AT3 play thread] INFO  hle.sceAtrac3plus - hleAtracSetData atracID=1, buffer=0x09AC81C0, readSize=0x23A0, bufferSize=0x23A0, fileSize=0x23A0
45625 [AT3 play thread] INFO  hle - AT3+ data decoded by the external decoder.
it should play a different voice sample for story mode and adhoc mode (it does on psp), but it uses the story mode one for both here (sce_lbn0x4ea80_size0x23a0 is the one for story mode. i think the sound from this one's used for both. the filename in temp is Atrac-000023A0-09A80180.wav).
Would it be possible to extract both audio files? I would like to check if the headers are somewhat different so that I could use a hash on them. Currently, I just use the buffer address and size, not the content.


RE: Yet another at3+ encoder/decoder - Abelus - 03-29-2013

Tested 3078 with Dragoneer's Aria - the dialogues now play perfectly !