Digital audio out

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
phlashgringo
Posts: 4
Joined: Thu Mar 26, 2009 4:35 am

Digital audio out

Post by phlashgringo »

Hi,

Since I found nothing about it, I thought I might ask here.
Is there or has there been a project like realising a digital audio out for the psp.
I guess the sio port is too slow. But it should be possible for stereo signal over usb port.
Is there such a project, and if no - why not?
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

There is a sample by moonlight which can capture the audio output. There are plenty of examples on how to communicate with USB. There is enough bandwidth to pump out the uncompressed audio through USB. Only thing is you need a custom program on the host side. Unless you take the effort to present a usb audio device to the host.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Something Torch touched on is the main reason why not - you don't just have to write code for the PSP, you need to write a driver for the PC side as well. Very few people can write Windows drivers, and even fewer can write drivers for other OSes.
phlashgringo
Posts: 4
Joined: Thu Mar 26, 2009 4:35 am

Post by phlashgringo »

maybe I didn't make myself clear - my wish is to push the digital audio signal out from the psp (over the usb plug - since there's no alternative) and plug it direclty - over some fancy adapter thing - into a av receivers digital coax in.
The adapter thing should be nothing more than a soldered cable connection.
Maybe some active or passive devices (resistor) for the right voltage level.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

There is no way you can manipulate a standard USB port at that level as it uses differential levels. Only specially designed hardware can do this (even then it would simply be a USB plug on the cable and not actual USB communication).
phlashgringo
Posts: 4
Joined: Thu Mar 26, 2009 4:35 am

Post by phlashgringo »

>even then it would simply be a USB plug on the cable and not actual USB communication

I don't want actual USB connection. I just want the usb plug :)

>There is no way you can manipulate a standard USB port at that level as it uses differential levels.

What do you mean by differential levels. Just to satisfy my greed for understanding:
Now - is it possible to send pure raw (user generated) bitwise data over the usb port. If this is possible everything else should be no problem
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

phlashgringo wrote:What do you mean by differential levels. Just to satisfy my greed for understanding:
Now - is it possible to send pure raw (user generated) bitwise data over the usb port. If this is possible everything else should be no problem
The voltage produced at the Tx/Rx is the output after the hardware level protocol packaging. You wouldn't be able to to communicate with non-USB compliant hardware unlike a serial port which can be wired up to all kinds of inputs since you have direct control of on/off on the pins. Unfortunately the serial port is too slow for your needs.

I think the only thing you can do is manipulate the headphone out. Capture the audio in software, prevent it from playing through the output (if thats even possible; maybe mute the channel in use while still being able to capture data??) Convert the captured audio into spdif data and turn it into a waveform. Play the waveform and you should have spdif output at the headphone socket. You'll need a level converter or whatever to convert the voltages at the headphone output to spdif standards.
phlashgringo
Posts: 4
Joined: Thu Mar 26, 2009 4:35 am

Post by phlashgringo »

The voltage produced at the Tx/Rx is the output after the hardware level protocol packaging.
Oh, bad luck - so there is no way for unpackaged raw data, I see.

Thanks for your idea with the headphone jack. Do you maybe have a good information source at hand for psp system programming resources. I think I have something lying around ... but if you got something relating in your pocket - you're welcome :)
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

Capture the audio in software, prevent it from playing through the output
...Maybe you could simply hook some waveform playing api function...
Post Reply