Symbian
Symbian OS Library

FAQ-1189 Why does the audio sample application in the UIQ SDK seem not to work on my P800/P900?

[Index][spacer] [Previous] [Next]



 

Classification: General Category: SDK
Created: 12/10/2004 Modified: 12/13/2004
Number: FAQ-1189
Platform: Symbian OS v7.0

Question:
I have tried running the audio sample app in the UIQ SDK [examples\MultiMedia\Audio] but whenever I try to record a sample it just fails without giving an error. Why is this?

Answer:
With a little logging it is possible to see that the application is failing with a KErrNotSupported error.
    This shows that the phone is not capable of recording in the mode requested i.e.
    // Set up file to record to, the recording format, codec, and settings
    iLocation.iName = aFile;
    iCodec.iBits = TMdaPcmWavCodec::E8BitPcm
    iSettings.iSampleRate=TMdaAudioDataSettings::ESampleRate8000Hz;
    iSettings.iChannels=TMdaAudioDataSettings::EChannelsMono;
      This is because the P800/P900 does not appear to ship with the required plugins for this mode of recording. Whilst it may be possible to play around with combinations of different sample rates, channels and bits [as well as format types] you would probably be better off using the CMdaAudioInputStream API to record data from the microphone which will guarantee you 16 Bit PCM audio [although the sample rate may be restricted].

      Please refer to the Sony Ericsson developer support site for further information.
       
      ;