Optical out and AC3

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Optical out and AC3

Post by taz030485 »

With EEUG's developments with SMS and the newly implemented AC3 sound, I was wandering if it is possible to output the AC3 sound to the optical port (SPDIF) for decoding on an external suround system?

I searched the net for a few hours earlier to learn (or atempt to in the time) as much about the various components involved and am not 100% sure how everything works. I know that there is very little documentation on the SPU2 (excluding dev kits). I found a this thread http://forums.ps2dev.org/viewtopic.php?t=1115, mainly refering to the second last post. I found a 236 page specification on AC3 (Don't know how much help that will be). I'm not sure how all the formats interact on the various components, PCM, AC3, PS2, SPDIF, 'Sound System'. If it helps my system is a Yamaha TSS-1.

If anyone could shed some light on the feasability of this? ie: not possible, tricky, possible, would take some work or 'done', along with reasons, references, etc. I shall keep researching into the various components (non-PS2) and see how they work and possibly report my findings. There would be a fair few people out there with sound systems and with AC3 audio becoming more widly used (not just on DVDs) why not take full advanagte of it.

Note: I may not know any coding or be able to help develop anything, but I am fairly knowledgeable on IT, tech, etc and have been watching PS2 homebrew for just over one and a half years so there's no need to dumb anything down ;)

Regards Andrew (aka Taz030485)
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

As far as I understand it, when you activate SPDIF on the PS2, the SPU2 simply diverts the raw data coming from the stereo pcm audio stream to the SPDIF connector. The SPDIF data stream supports raw PCM stereo 16bit samples, raw AC3 data, and raw DTS data. I have the SPDIF activated on my PS2, and sound from current projects like SMS play across it just fine. I should be able to modify the code to just dump the AC3 data in packets to the sound out and my digital deck should decode it. I've been swamped for time, but I'll update SMS and try that, probably by the weekend.
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

I have it enabled on mine also. If you do try it and it works pass it on to EEUG and see what he thinks.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I will. I'd love nothing better than to have support for SPDIF out. Then some folks wouldn't need to worry about decoding AC3 or DTS, which would allow more time for video decoding. :)

Not to mention, digital sounds MUCH better than decoding and playing out the analog lines. Just the difference in playing a CD on the PS2 via SPDIF and analog is amazing.
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

J.F. wrote:I will. I'd love nothing better than to have support for SPDIF out. Then some folks wouldn't need to worry about decoding AC3 or DTS, which would allow more time for video decoding. :)

Not to mention, digital sounds MUCH better than decoding and playing out the analog lines. Just the difference in playing a CD on the PS2 via SPDIF and analog is amazing.
Just wandering if you have made any progress on this yet?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Sorry, been too busy to try, but I did at least update the PS2 stuff to the latest in the repository. Maybe this weekend...
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

J.F. wrote:Sorry, been too busy to try, but I did at least update the PS2 stuff to the latest in the repository. Maybe this weekend...
If you've been busy that's fine, the whole world doesn't revolve around the PS2 (though some ppl think it does :P)
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

J.F. wrote:Sorry, been too busy to try, but I did at least update the PS2 stuff to the latest in the repository. Maybe this weekend...
Don't mean to nag, but any progress?

I'd try it myself, but I don't have the programming environment or ps2 setup to do so :P
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Uh, sorry. The week before last, I accidentally erased my system. :O I'm just now getting back to where I was. Sh-t happens. :)

I'm currently checking out a fresh copy of the svn. After that, I need to setup the toolchain again.
taz030485
Posts: 27
Joined: Thu May 27, 2004 3:37 pm

Post by taz030485 »

DAMN, I hate it when that happens :@

Hope u didn't loose anything valuable/irreplacable.

Also I'm having trouble setting up the toolchain on my system, I posted in a thread about it but haven't got an answer yet.
Post Reply