Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User hawlman's Avatar
    Join Date
    Dec 2004
    Posts
    15
    hi,all
    I am a new guy for symbian programming. I want to implement a audio recording software, that can record at 44.1k Hz and save file as a raw wave format. Could anyone give me some suggestions?
    BTW, is there already any symbian software with the above functions?

  2. #2
    Registered User delipsingh's Avatar
    Join Date
    Aug 2003
    Posts
    16
    You can record using CMdaAudioRecorderUtility.

    iMdaAudioRecorderUtility = CMdaAudioRecorderUtility::NewL(*this);

    ......

    TMdaFileClipLocation iMdaFileClipLocation = new TMdaFileClipLocation(KRecorderFile);

    CMdaAudioType iMdaAudioType = new (ELeave) CMdaAudioType;
    iMdaAudioType->iFormat=new (ELeave) TMdaRawAudioClipFormat;
    iMdaAudioType->iCodec=new (ELeave) TMdaRawAudioCodec();
    iMdaAudioType->iSettings=new (ELeave) TMdaAudioDataSettings;
    iMdaAudioType->iSettings->iSampleRate=44100;
    iMdaAudioType->iSettings->iChannels=1;

    iMdaAudioRecorderUtility->OpenL(iMdaFileClipLocation, iMdaAudioType->iFormat, iMdaAudioType->iCodec, iMdaAudioType->iSettings);

    .......

    put below code in your Record function or in MoscoStateChangeEvent() function

    iMdaAudioRecorderUtility->SetAudioDeviceMode(CMdaAudioRecorderUtility::ELocal);
    iMdaAudioRecorderUtility->SetGain(iMdaAudioRecorderUtility->MaxGain());
    iMdaAudioRecorderUtility->SetPosition(TTimeIntervalMicroSeconds(0));
    iMdaAudioRecorderUtility->CropL();
    iMdaAudioRecorderUtility->RecordL();

    i hope it solves your problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved