×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Play audio files

    Hi everybody!!!

    I am making an simple application in which i want to play an audio files.(Tone)
    and for that i refer the forum nokia site : -

    ""http://wiki.forum.nokia.com/index.php/Playing_audio_tones""

    As per that given example i just include the header first
    in cpp file

    #include <MdaAudioTonePlayer.h>
    #include <eikmenup.h>

    and

    #include <e32std.h>
    #include <MdaAudioTonePlayer.h>

    in .hpp file

    Also i include the library "" mediaclientaudio"" and capability"" MultimediaDD "'

    but dont know it is not working??????
    can anybody will try this??

    Thanks

    Pankaj.

  2. #2
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    What is the problem you are getting?? Is it not compiling or your application is not working?? You need not include the same header file in both .h and .cpp. Only in Header file will be enough(because it has some Observer class).
    Maximus
    S60 Developer
    Impossible is nothing

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    Hi yogpan,

    As per you advise i just include the header in .hpp file..
    after all my vode is not compile....
    showing error..

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Play audio files

    You should write a bit better description on the error, othervise it is impossible to know what goes wrong..

  5. #5
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    Symbianyucca is correct please define what error you are getting while compiling else its not possible to see where the things are going wrong.You can paste the compiler errors that you are getting in the post.
    Maximus
    S60 Developer
    Impossible is nothing

  6. #6
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    ok guyes here i will explain more clearly



    I am making an simple application in which i want to play an audio files.(Tone)
    and for that i refer the forum nokia site : -

    ""http://wiki.forum.nokia.com/index.php/Playing_audio_tones""

    As per that given example i just include the header first
    in .cpp file(Not include the entire code just header to see whether it compile properly??)

    #include <eikmenup.h>

    and

    #include <e32std.h>
    #include <MdaAudioTonePlayer.h>

    in .hpp file

    Also i include the library "" mediaclientaudio"" and capability"" MultimediaDD "' also adde in same application.

    but dont know it is not compile and showing some erro whic are as


    (1) C://Symbian//9.1//S60_3rd//epoc32//include/mmf\common\mmfcontroller.h:56: error: `KMmfUidPluginInterfaceController' was not declared in this scope{i personally check it is there}

    (2) ../src/TonePlayerAppUi.cpp:176: fatal error: error writing to -: Invalid argument
    compilation terminated.

    (3)make: *** [src/TonePlayerAppUi.o] Error 1

    Now may be it will work..

    Thanks

    Pankaj.

  7. #7
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    Have you checked whether your cpp is able to compile with the required header file. Since the header file is in mmf\common inside include folder yuo will have to mention the path in System include as
    SYSTEMINCLUDE \epoc32\include\mmf\common.
    I hope you are already doing this.
    Maximus
    S60 Developer
    Impossible is nothing

  8. #8
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    Hi yogpan,

    Thanks a lot man now it is working!!!!!!!!!!!!

  9. #9
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    Hi yogpan,

    Yesterday it was working fine and we run the same on other pc
    but now showing the same error???(as i include the system patch as well).

    What may be reason ...??

  10. #10
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    Cross check all the paths again.Where you have put your project.Your system include folder.There will be a mismatch in the path.Since either the relative location of the header files would have beed changed.
    Are you getting the same compilation error??
    Maximus
    S60 Developer
    Impossible is nothing

  11. #11
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    Hi yogpan,

    I checked the all the path and all is ok.

    i put my project in ""C:\Symbian\9.1\S60_3rd\S60Ex""

    and yes i m getting same compiling error.....

    Thanks

    Pankaj.

  12. #12
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    Can you check by putting your project in the root of epoc32 that means at
    C:\Symbian\9.1\S60_3rd\( I hope your epoc32 is in this path) . Was your previous project in the root path ??
    Maximus
    S60 Developer
    Impossible is nothing

  13. #13
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    Hello yogpan,

    Buddy i put the project in the same path as mentioned by you in

    (1)C:\Symbian\9.1\S60_3rd\myallication

    (2)C:\Symbian\9.1\S60_3rd\Epoc32\myapplication name


    but in both above case the same error is coming.............

    What can be done....

    Pankaj.

  14. #14
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Play audio files

    Hi,
    May be then you should check the system include files. It can happen their location might have changed in this release. Try seaching for the header in the epoc\include folder and then give the appropriate path in your code.
    Maximus
    S60 Developer
    Impossible is nothing

  15. #15
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    153

    Re: Play audio files

    One more thing dear i m checking my environment variable
    right now and i m finding some mismatch over there.
    will u inform after correction,,,

    thanks.

Similar Threads

  1. Play audio with Audio Proxy Server
    By Nicolae in forum Streaming and Video
    Replies: 1
    Last Post: 2008-09-15, 10:17
  2. How to read the stored audio files from memory card?
    By katy2 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-03-29, 08:01
  3. play audio files
    By khalandar in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-03-07, 05:58
  4. Playing more audio files ? ......
    By senthilkumar05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-03-03, 11:04

Posting Permissions

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