How to use the Audio Devices ?
-
I use the object 'QAudioInput' and ‘QAudioOutput', on Symbian 5th, based on Qt4.6.3, it works. It can record and play sound.
Now I want to play sound by earphone, NOT the speaker(which is the default output device).
How could I do?
-
According to "this post":http://labs.qt.nokia.com/2010/05/10/low-level-audio-processing-with-qtmultimedia/ the list returned by "availableDevices":http://doc.trolltech.com/4.6/qaudiodeviceinfo.html#availableDevices() should contain the headset device.
But I never tried it =)
-
[quote author="danilocesar" date="1284646272"]According to "this post":http://labs.qt.nokia.com/2010/05/10/low-level-audio-processing-with-qtmultimedia/ the list returned by "availableDevices":http://doc.trolltech.com/4.6/qaudiodeviceinfo.html#availableDevices() should contain the headset device.
But I never tried it =)[/quote]
thanks, danilocesar. I try it with an example Qt program 'audioDevice' , it uses the API 'availableDevices' to get all the devices avilable. When I run this program on real device , a N97-mini, it get only one device: default.