Example of s60 full-duplex audio-side acquisition and Playback

Source: Internet
Author: User

See the post about implementing mobile phone audio calls on s60, similar to the VoIP function. We thought that hardware constraints could not implement such a function, but some people suggested possible solutions. This is an interesting example.

 

Question:

I have been puzzled about the implementation of the mobile phone intercom function. I don't know if the speaker can give me some advice.

The intercom function is divided into two categories: Collection and playback.
For stream playback, The cmdaaudiooutputstream class receives data from the server and then plays the wrtie video.
The cmdaaudioinputstream class is used to collect and send data to the server.

However, when the front-end time is done, it is found that playing and collecting cannot work at the same time. The collection stops during playback and the playback stops during collection.

Later, xiaoyuan introduced that the underlying DSP (analog digital signal converter) is not full duplex. If you are familiar with DSP, you can make this function.
I'm not familiar with it, but the phone call is not a disguised intercom. Why can I use the API? Is there any other way to do this ??

Nokia introduced the use of ASP voice proxy server, which is a plug-in. In this case, the program will be very large.

How can this intercom be implemented ??

 

Answer:

You can capture and play simultaneously on s60. Refer to this example

 

File Name: S60_Platform_Full-Duplex_Audio_Example_2_0_en.zip
Description: This C ++ example application plays and records audio simultaneously, reading from the microphone and writing to the earpiece/speaker, creating a local audio feedback loop. audio is processed in encoded format, using real-time Encoding/decoding support from audio hardware. this example can also be used for creating VoIP applications on s60 2nd edition, s60 2nd Edition fp2 and fp3. main classes: cmfdevsound, mdevsoundobserver.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.