×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    NewFileL problem(recording audio problem)

    hi im trying to record the uplink voice during when the call gets connected.Im using the CMdaAudioRecorderUtility to record the voice.But im facing a strange problem.

    When my call gets connected im calling the following for opening a file for recording:

    RFile file123;
    RFs ifs;
    ifs.Connect();
    file123.Create(ifs, _L("C:\\Test.wav"), EFileShareExclusive | EFileWrite);
    iRecorder->OpenFileL(file123);

    But the problem is that after call of this OpenFileL func. the callback function which is:
    MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)

    is not getting called and therefore i always gets a empty wave file recorded.

    Im also calling the Stop() function of recording API when my call gets diconnected.

    I have also trapped the OpenFileL() function and it returns 0 as error code.

    So anybody having idea that why nothing is executed after OpenFileL() is called.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    42

    Re: NewFileL problem(recording audio problem)

    hi,
    Please try with this code to create the file
    RFs fsSession; // session to write to
    User::LeaveIfError(fsSession.Connect()); // connect session
    RFile myFile; // file to write to
    myFile.Replace(fsSession,FileName,EFileWrite);//Create
    myFile.Close();
    fsSession.Close();
    and also when u call the recordl?
    Last edited by ketanmuttha; 2009-06-04 at 12:12.

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: NewFileL problem(recording audio problem)

    i call the recordL at the time when my call gets connected.
    Last edited by vineet.jain; 2009-06-04 at 13:22.

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: NewFileL problem(recording audio problem)

    im not getting that why the call back function is not getting called at the time after OpenFileL()is called.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    42

    Re: NewFileL problem(recording audio problem)

    Hi,
    Can u put your code here ?

Similar Threads

  1. Problem in accessing audio buffer while Recording in 6600 and 7210
    By dham in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2009-04-24, 10:18
  2. Problem in playing in an audio file.
    By PankajNeve in forum Symbian C++
    Replies: 3
    Last Post: 2007-03-09, 13:52
  3. 3500 (s40) playing audio problem
    By ahmadi2c in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-07, 08:03
  4. Audio problem with Nokia 6600
    By paulmig001 in forum Audio
    Replies: 0
    Last Post: 2006-02-20, 17:38
  5. nokia 6630 audio problem
    By aditya.raut in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-15, 09:17

Posting Permissions

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