×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    audio recording in Raw Format

    Hi All,

    I am madly trying to record audio in raw format.......I have seen some post regarding this which are using CMdaAudioRecorderUtility.But I am facing a problem.....There are two function in CMdaAudioRecorderUtility....OpenL() and OpenFileL().
    OpenFileL() takes following parameters:

    void OpenFileL(const TDesC& aFileName, TUid aRecordControllerUid, TUid aPlaybackControllerUid=KNullUid, TUid aFormatUid=KNullUid, TFourCC aCodec=NULL);

    So now my question is what will be the extension of file name(first parameter) if I want to record audio in raw format....my second question is from where I can get other parameters for this function as I am not getting anything regarding these parameters in SDK.

    If I try to use OpenL():

    virtual void OpenL(TMdaClipLocation* aLocation, TMdaClipFormat* aFormat, TMdaPackage* aArg1=NULL, TMdaPackage* aArg2=NULL);
    then what will be the first parameter.....If I get success to record it then How it can be played...

    Please help as I m stuccked in this.

    Regards
    Pankaj

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

    Re: audio recording in Raw Format

    Ok I will give you hint:

    The First Parameter is either you take as a file or buffer for recording or playing. i.e the object of TMdaFileClipLocation or TMdaDesClipLocation(if you are using buffer for recoding/playing) once it is opned ....Try to play it..
    u can even download the sound example....
    cheers

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    Re: audio recording in Raw Format

    R u talking about Sound example which is with SDK.....one thing more.....I tried the first parameter with file name like _LIT(KRecorderFile, "C:\\record.pcm"); but it was giving some error....can u give me some code snippet.....

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    40

    Re: audio recording in Raw Format

    Ok See it

    new TMdaFileClipLocation(KRecorderFile)
    and then try it taking the correct format and codec

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    28

    Smile Re: audio recording in Raw Format

    Hi Pankaj,

    Do you want to record sound in PCM format and what device you are using is 2nd edition handset, FP1 or FP2 based device.

  6. #6
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    Re: audio recording in Raw Format

    Hi Rajkumar,
    I really appreciate ur help...I have recorded record.pcm file....Now I have to play it....can you tell me any way to play it..........i m really thankfull to u.....

    Regards,
    Pankaj

  7. #7
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    Re: audio recording in Raw Format

    Hi Parvinder Sir....

    It was nice to see ur post..kasam se maza aa gaya....actually my motive was to record sound file in .pcm format.....I m using FP1 devices...I have recorded successfully that .pcm file but I m unable to play that ...can u plz help me in playing that..........

    Regards,
    Pankaj
    Last edited by impankaj24; 2006-02-09 at 05:23. Reason: just

  8. #8
    Registered User
    Join Date
    Jan 2006
    Posts
    40

    Re: audio recording in Raw Format

    call the PlayL function

  9. #9
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    Re: audio recording in Raw Format

    Hi rajkumar........
    Thanks again.....actually .pcm file dont have any header so I think PlayL() will be not able to play this file....This is happening with me ...PlayL() is not doing anything....If I append header of .wav file to this file then may be it will be played.....I m trying seperately that......because after a bit research I came to know that .pcm file dont have any header.......
    Any suggestion appreciated...do u have any yahoo messenger id so that I can discuss it with u in detail...

    Regards.
    Pankaj

  10. #10
    Registered User
    Join Date
    Jan 2006
    Posts
    40

    Re: audio recording in Raw Format

    Have u tried with CMdaAudioOutputStream to play it?

  11. #11
    Registered User
    Join Date
    Oct 2005
    Posts
    19

    Re: audio recording in Raw Format

    No ..I havnt tried CMdaAudioOutputStream..becoz I suppose there sud be some mechanism to play it with CMdaAudioRecorderUtility.....I m trying that ..

  12. #12
    Registered User
    Join Date
    Jan 2005
    Posts
    8

    Re: audio recording in Raw Format

    save it as "abc.wav" not with .pcm extn.

Similar Threads

  1. Buggy AMR Audio Recording. Please Help!!
    By jhamby in forum Symbian
    Replies: 8
    Last Post: 2009-07-07, 10:34
  2. To play raw audio data file
    By pawans in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-12-11, 11:38
  3. Recording an audio stream using the Series 60 emulator
    By rastapasta in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-04-23, 11:46
  4. 3650 audio recording in GSM 6.10 format
    By tctse in forum Symbian
    Replies: 4
    Last Post: 2003-06-20, 09:25
  5. 7650 basic audio recording format
    By gamit in forum Symbian
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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