EmuNewz Network
Decoding of mono AT3+ using SonicStage - 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: svn trunk discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=56)
+---- Thread: Decoding of mono AT3+ using SonicStage (/showthread.php?tid=4245)

Pages: 1 2


Decoding of mono AT3+ using SonicStage - gid15 - 04-16-2011

In r2087, I've added a dedicated message for monaural audio files, which cannot be decoded by SonicStage: "Mono AT3+ data could not be decoded by the external decoder".

It seems that mono AT3+ cannot be decoded by SonicStage. I'm not sure if this is a restriction of SonicStage or if the mono AT3+ has a different OMA format.
I've never found a valid OMA file containing monaural audio. If you find such information or valid OMA samples, this would be very interesting!


RE: Decoding of mono AT3+ using SonicStage - dista_bagus - 04-16-2011

gid15,tried with r2087.
still no voice character.

http://www.emunewz.net/forum/showthread.php?tid=4209&pid=13182#pid13182


RE: Decoding of mono AT3+ using SonicStage - Karen - 04-16-2011

i can confirm it won't worked out ^^, i tried with some games, and the ones that don't played the voices still don't play them


RE: Decoding of mono AT3+ using SonicStage - hyakki - 04-16-2011

gid15, In games like Hexyz Force, the voice audio is stored in an afs container, the audio is an adx file but when playing the game they get sent to himdrender I don't think they are at3 files though


RE: Decoding of mono AT3+ using SonicStage - gechdcb - 04-17-2011

I think Super Robot Taisen Z Hakaihen use mono AT3+ file.

This is the sample file:

.zip   Atrac-00004204-09246000.zip (Size: 14.25 KB / Downloads: 179)

and mplayer output:
Playing E:\PSP_EMU\Jpcsp\tmp\ULJS00379\Atrac\Atrac-00004204-09246000.oma.
Invalid seek to negative position!
libavformat file format detected.
[oma @ 01633f60] Unsupported codec ATRAC3+!
[oma @ 01633f60] Could not find codec parameters (Audio: [1][0][0][0] / 0x0001, 44100 Hz, 1 channels, 96 kb/s)
[oma @ 01633f60] Estimating duration from bitrate, this may be inaccurate
LAVF_header: av_find_stream_info() failed


RE: Decoding of mono AT3+ using SonicStage - gid15 - 04-17-2011

(04-16-2011, 08:52 PM)hyakki Wrote: gid15, In games like Hexyz Force, the voice audio is stored in an afs container, the audio is an adx file but when playing the game they get sent to himdrender I don't think they are at3 files though
Are the ADX files really sent to himdrender?
I see 2 possibilities:
- the game is decoding the ADX format in software, without using sceAtrac3plus.
- the game is converting the ADX format into RIFF/WAVE format. sceAtrac3plus is only accepting this format, otherwise, the following error is produced: "Not a RIFF/WAVE format! XXXXXXXX XXXXXXXX"

My guess is the first alternative.
I've never found info that the PSP can handle the ADX format natively. Or am I wrong?
(04-17-2011, 03:29 AM)gechdcb Wrote: I think Super Robot Taisen Z Hakaihen use mono AT3+ file.

This is the sample file:


and mplayer output:
Playing E:\PSP_EMU\Jpcsp\tmp\ULJS00379\Atrac\Atrac-00004204-09246000.oma.
Invalid seek to negative position!
libavformat file format detected.
[oma @ 01633f60] Unsupported codec ATRAC3+!
[oma @ 01633f60] Could not find codec parameters (Audio: [1][0][0][0] / 0x0001, 44100 Hz, 1 channels, 96 kb/s)
[oma @ 01633f60] Estimating duration from bitrate, this may be inaccurate
LAVF_header: av_find_stream_info() failed
And this mono AT3+ can't be played by SonicStage. This is why I'm trying to find out if this is a restriction of SonicStage (which I doubt) or if the generated OMA file is incorrect (mono AT3+ might have a slightly different header).


RE: Decoding of mono AT3+ using SonicStage - Hykem - 04-17-2011

gid15 Wrote:Are the ADX files really sent to himdrender?
I see 2 possibilities:
- the game is decoding the ADX format in software, without using sceAtrac3plus.
- the game is converting the ADX format into RIFF/WAVE format. sceAtrac3plus is only accepting this format, otherwise, the following error is produced: "Not a RIFF/WAVE format! XXXXXXXX XXXXXXXX"

My guess is the first alternative.
I've never found info that the PSP can handle the ADX format natively. Or am I wrong?

No, you're right. The .ADX files are normally decoded internally by the "CRI ADX" threads on those games and the result is generally a regular ADPCM output. That's why some games use these files and can still output sound. Wink

gid15 Wrote:And this mono AT3+ can't be played by SonicStage. This is why I'm trying to find out if this is a restriction of SonicStage (which I doubt) or if the generated OMA file is incorrect (mono AT3+ might have a slightly different header).

Unfortunately, it is a restriction of SonicStage (check this thread: http://forums.sonyinsider.com/topic/9585-everything-about-mono-playback-and-recording-with-hi-md/ ). Turns out, Sony assumed no one would generate ATRAC3+ media in MONO mode. Makes sense, but their at3tool allows devs to still do this, so, quite a contradiction here...
Anyway, looks like the only way to have SonicStage playing this, is to render these files as stereo data. Undecided


RE: Decoding of mono AT3+ using SonicStage - hyperspeedgx - 04-17-2011

r2089,Megaman Maverick Hunter X,SE and voice still don't works.


RE: Decoding of mono AT3+ using SonicStage - utena000 - 04-17-2011

(04-17-2011, 03:33 PM)Hykem Wrote:
gid15 Wrote:Are the ADX files really sent to himdrender?
I see 2 possibilities:
- the game is decoding the ADX format in software, without using sceAtrac3plus.
- the game is converting the ADX format into RIFF/WAVE format. sceAtrac3plus is only accepting this format, otherwise, the following error is produced: "Not a RIFF/WAVE format! XXXXXXXX XXXXXXXX"

My guess is the first alternative.
I've never found info that the PSP can handle the ADX format natively. Or am I wrong?

No, you're right. The .ADX files are normally decoded internally by the "CRI ADX" threads on those games and the result is generally a regular ADPCM output. That's why some games use these files and can still output sound. Wink

gid15 Wrote:And this mono AT3+ can't be played by SonicStage. This is why I'm trying to find out if this is a restriction of SonicStage (which I doubt) or if the generated OMA file is incorrect (mono AT3+ might have a slightly different header).

Unfortunately, it is a restriction of SonicStage (check this thread: http://forums.sonyinsider.com/topic/9585-everything-about-mono-playback-and-recording-with-hi-md/ ). Turns out, Sony assumed no one would generate ATRAC3+ media in MONO mode. Makes sense, but their at3tool allows devs to still do this, so, quite a contradiction here...
Anyway, looks like the only way to have SonicStage playing this, is to render these files as stereo data. Undecided

this makes sense, but is it possible to change the mono sound files into stereo data, hope there will be a good news later~Blush
then the emu will become more and more perfect


RE: Decoding of mono AT3+ using SonicStage - Agent69 - 04-17-2011

Just full valid custom made atrac3+ mono file with oma header. 48kbps mono. Can be decoded by Sony Sound Forge with atrac import plugin.