Hey Guys,

I am working on streaming RAW audio from a network location, but
finding it a bit hard. So here is a description on what I am trying to
do :

I want to be listening on a port on my phone for some raw audio data,
that will be sent from a location on my network using netcat. I pretty
much want to perform a netcat listen function on my android and pipe
out the data to the audio hardware. I have looked at the AudioRecord
and AudioTrack classes which give access to raw media and might be
useful in this task.

I was wondering if you could refine the following algorithm for me and
point me to the implementation, as I know a bit of java but not too
confident with using Sockets, Pipes and AudioTrack to do this.

The procedure i am planning to use is:

1) Use a new ServerSocket(port) to listen on particular port.
2) The other side connects to this port using netcat <ip of
android>:<port>
3) Make a new Pipe which takes the outputstream from the socket, and
feeds it into the input of the audio hardware.
4) Use methods from AudioTrack to play the raw audio in real time

Any help in this area would be very much appreciated, as I have been
struggling to find anything in this area.

Cheers..
Tanmay

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to