forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Digital audio out

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
phlashgringo



Joined: 26 Mar 2009
Posts: 4

PostPosted: Thu Mar 26, 2009 4:41 am    Post subject: Digital audio out Reply with quote

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?
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Mar 26, 2009 10:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Mar 27, 2009 7:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
phlashgringo



Joined: 26 Mar 2009
Posts: 4

PostPosted: Fri Mar 27, 2009 8:40 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Mar 27, 2009 1:46 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message
phlashgringo



Joined: 26 Mar 2009
Posts: 4

PostPosted: Fri Mar 27, 2009 8:50 pm    Post subject: Reply with quote

>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
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Mar 27, 2009 9:21 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
phlashgringo



Joined: 26 Mar 2009
Posts: 4

PostPosted: Sat Mar 28, 2009 12:09 am    Post subject: Reply with quote

Quote:
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 :)
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sat Mar 28, 2009 9:28 pm    Post subject: Reply with quote

Quote:
Capture the audio in software, prevent it from playing through the output

...Maybe you could simply hook some waveform playing api function...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group