×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    119

    Recording audio using 'CMdaAudioRecorderUtility'

    Hi.

    I am trying to use the 'CMdaAudioRecorderUtility' object for recording audio on Nokia 3650 (OS 6.1) however each time I am attempting to do so, the application crashes.

    this is what I am doing for opening the device:

    // Begining for code:

    TMdaRawAudioClipFormat m_rawAudioClipFormat;
    TMdaU8PcmRawAudioCodec m_rawCodec;
    TMdaAudioDataSettings m_audioSettings;

    m_audioSettings.Query();
    //
    m_audioSettings.iSampleRate = sr;
    m_audioSettings.iChannels = channels;
    m_audioSettings.iFlags = TMdaAudioDataSettings::ENoNetworkRouting;
    m_audioSettings.iMaxVolume = 1;
    //

    m_pRecordedUtility = CMdaAudioRecorderUtility::NewL(m_recorderObserver);

    m_pRecordedUtility->OpenL( &m_clipLocation, &m_rawAudioClipFormat,
    &m_rawCodec ,&m_audioSettings);


    //// end of code

    the application crashes when I am trying to perform:

    pRecordedUtility->Play();

    // or

    pRecordedUtility->Record();
    //

    Am I opening the device correctly ?
    if not, what am I doing wrong ?
    Is there any sample code available for doing what I am trying to do ?

    Thanks in advance !

    Shai . K

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    are you checking the states in your MoscoStateChangeEvent() function. Just that if you have errors already on opening the file, and that the file status is open before trying to record/play on it.

    yucca

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×