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. |