×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    31

    About AudioPlayer

    Hello every reader. I have a problem about AudioPlayer. I already include AudioPlayer and AudioPlayerUtility classes. I copied it from http://wiki.forum.nokia.com/index.ph...io_files#Links. I have 2 problems.

    The first problem is I do not have "CExampleTimer.h". Does anyone can give me a referent to this file.

    The second problem is I cannot play the audio files or I do not not how to initiate it.
    I did this, but it doesn't work.
    LOCAL_C void MainL()
    {
    CMdaAudioPlayerUtility* iMdaAudioPlayerUtility =
    CMdaAudioPlayerUtility::NewFilePlayerL(_L("C:\\sample1.wav"), *this);
    iMdaAudioPlayerUtility->Play();
    console->Write(_L("Hello, world!\n"));
    console->Printf(KWait);
    }

    Please help, I am a newbie in Symbian C++, It is tough.

    Thank you
    Beir

  2. #2
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Re: About AudioPlayer

    Quote Originally Posted by BeirBear View Post
    iMdaAudioPlayerUtility->Play();
    this line should be in MapcInitComplete() callback function. this function is get called when player get initialised

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    31

    Re: About AudioPlayer

    I got it. Thank you.

Similar Threads

  1. Replies: 6
    Last Post: 2009-11-19, 18:14
  2. AudioPlayer example
    By julienpfe in forum Symbian
    Replies: 1
    Last Post: 2007-03-06, 22:26
  3. MMAPI problem on 6680
    By danielnilsson in forum Mobile Java Media (Graphics & Sounds)
    Replies: 11
    Last Post: 2007-02-01, 08:15
  4. Sound problem
    By Joerg_Teichmann in forum Symbian
    Replies: 1
    Last Post: 2003-09-15, 05:20

Posting Permissions

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