×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Hyderabad
    Posts
    181

    problem in playing a wav file

    Hi all,

    I'm trying to play a wav file in my containe class with the following code. My container implements MMdaAudioPlayerCallback class.

    _LIT(KSoundSampleFile,"z:\\system\\sounds\\digital\\play.wav");
    CMdaAudioPlayerUtility* iMdaAudioPlayerUtility;
    iMdaAudioPlayerUtility = CMdaAudioPlayerUtility::NewFilePlayerL(KSoundSampleFile, *this);
    iMdaAudioPlayerUtility->Play();

    when i tried to run this its giving "Panic CMdaAudioPlayerU 1".
    I tried with the wav sample given in SDK.
    I tried to catch the error in MapcInitComplete() method. its not giving none of the KErrNotSupported ,KErrNotFound , KErrNoMemory erroes. what might be the problem.

    Plz Help me in fixing this. Plz...
    thanks in advance.

    regards,
    rajsekar

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    3
    I think you should move your Play() method into the MapcInitComplete() function

Posting Permissions

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