How can I get the audio output data?

All your problems with Audio, Video and Images.

How can I get the audio output data?

Postby huanmengQQ » Fri Oct 15, 2010 3:36 am

HI:

I am working on an android VNC project which I must send the audio to the client together with the frame!

Now I can:
1,Send the frame to the target;
2,Use the audiorecord to record the voice from the MIC and send it to the client use the RTP protocol.

I also want to send the audio to the client which is playing (music etc.)when the client connected to the server!

But I don't know how to the get the decoded data of the playing audio, just like the VNC which can send the Framebuffer to the client!

If you have any idea please help me, I need the solution for this problem very urgently!

Thanks for your reading.

Sorry for my poor English!

Best Regards.
huanmengQQ
Freshman
Freshman
 
Posts: 2
Joined: Thu Oct 14, 2010 12:59 pm

Top

Re: How can I get the audio output data?

Postby huanmengQQ » Fri Oct 15, 2010 3:48 am

My own solution is :

1,Get the decoded audio data;
2,Set the volume to 0 OR set the audiobuffer to 0 (use memset)on the server;
3,Use the RTP protocol to send the data to the client;
4,Use the audiotrack play the stream music on the client;
5,Set the volume back to original value on the server when disconnected .

Thanks for any help!
huanmengQQ
Freshman
Freshman
 
Posts: 2
Joined: Thu Oct 14, 2010 12:59 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 23 guests