×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    40

    Help! sound recording doesn't work on FP2

    Hi,

    I have a sound recording program which works with Nokia 6620. Recently I got a Nokia 6682 phone and am trying to make the program work on it.

    According to Nokia website, 6682 has #60 2nd Edition FP2 (OS v8.0a). So I download the SDK (The one supporting VC++ and C++ Builder) and recompile everything. Compile is ok. But I found the program doesn't work on either the emulator and the phone. My program just use CMdaAudioRecorderUtility to do file recording. On both emulation and real phone, as long as I call iMdaAudioRecorderUtility->RecordL(), it leaves with a number 4294967291.

    And I tried with 3 Nokia sample programs, Sound, Record and AudioClientEx, none of them works either on the emulator or the phone. For Sound, after creating the recorder, iMdaAudioRecorderUtility->State() always returns NotReady, therefore it can never start recording. Acturally during iMdaAudioRecorderUtility initialization, MoscoStateChangeEvent is called with a KErrNotSupported(-5) error. For Record, it simply crashes after launch. AudioClientEx can't be compiled with a bad rss file which has portions like:

    DLG_LINE
    {
    type=EEikCtChoiceList;
    prompt="Sample rates:";
    id=ESampleRates;
    control=CHOICELIST
    {
    };
    },


    Here CHOICELIST can't be accepted by RCOMP.

    Any one can help me out? I need to make my program work. I've checked SDK document it never mention any change to CMdaAudioRecorderUtility. Can anyone pass me a working sample or point out what's wrong with my SDK or so. Huge thanks.
    Last edited by haploidus; 2006-08-30 at 19:27.

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    40

    Re: Help! sound recording doesn't work on FP2

    New progress, Sound sample works on the emulator, but not on the phone. The problem is that in the sample source code, there are two ways to do recording. Previously it was:


    // Open an existing sample file for playback or recording,
    // causes MMdaObjectStateChangeObserver::MoscoStateChangeEvent to be called
    //iMdaAudioRecorderUtility->OpenFileL(tFullFileName);

    iWavBuffer = HBufC8::NewL(100000);
    //iWavBuffer = new ( ELeave ) TBuf8<100000> ;
    iMdaAudioRecorderUtility->OpenDesL(iWavBuffer->Des());

    I guess OpenDesL is not supported. Once I change it to

    // Open an existing sample file for playback or recording,
    // causes MMdaObjectStateChangeObserver::MoscoStateChangeEvent to be called
    iMdaAudioRecorderUtility->OpenFileL(tFullFileName);

    //iWavBuffer = HBufC8::NewL(100000);
    ////iWavBuffer = new ( ELeave ) TBuf8<100000> ;
    //iMdaAudioRecorderUtility->OpenDesL(iWavBuffer->Des());

    It works. However, it still doesn't work on the phone.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    40

    Re: Help! sound recording doesn't work on FP2

    I manage to make my program works on the phone now.

    But I found CMdaAudioRecorderUtility fundtions DestinationSampleRateL and GetSupportedSampleRatesL not working on OS 8.0a. Which means I can't change the sampling rate any more.
    Last edited by haploidus; 2006-08-30 at 21:31.

Similar Threads

  1. Problem with Sound class getState()
    By creepymo in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-06-20, 18:43
  2. Record Sound with Heap Buffer doesn't work... :((
    By valentin_da_itiv in forum Symbian
    Replies: 6
    Last Post: 2004-10-30, 09:54
  3. Replies: 3
    Last Post: 2004-04-26, 14:58
  4. Error in Recording Sound using OpenL().
    By kiranpuranik in forum Symbian
    Replies: 4
    Last Post: 2004-03-17, 06:23
  5. Sound example - audio recording problem
    By batusek in forum Symbian
    Replies: 0
    Last Post: 2003-06-19, 14:53

Posting Permissions

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