×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Red face how to play sound from file

    Hello friends,
    I wanna play sound from file.
    like if there is file in “ c:\\ Data \\ others \\ song.mp3”
    then how to play it from button event.
    please give me some sample code or link.
    Thanks in advance.

    Regards:
    Manmay Gupta

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: how to play sound from file

    Try not to multi-post. refer to other thread for pointer to solve your problem.

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

    Re: how to play sound from file

    which API r u using to play a file, plz show me some code whr have u written the play function

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: how to play sound from file

    Quote Originally Posted by vineet.jain View Post
    which API r u using to play a file, plz show me some code whr have u written the play function
    have you checked wiki for code example.

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    6

    Re: how to play sound from file

    I'm having the same problem. I didn't see anything in the wiki and the instructions at this link don't work.

    S60 5th Edition C++ Developer's Library v2.0 > S60 C++ API reference > C++ API Reference > S60 Platform Services > Classic UI Services > Sounds API

    I get a "Panic ALLOC: 460dcd18" when execting this command

    iKeySounds->AddAppSoundInfoListL(R_MYAPP_SOUND_LIST);

    Anyone have any simple code for playing a simple sound?

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: how to play sound from file

    Quote Originally Posted by david.2.sanchez@nokia.com View Post
    I'm having the same problem. I didn't see anything in the wiki and the instructions at this link don't work.

    S60 5th Edition C++ Developer's Library v2.0 > S60 C++ API reference > C++ API Reference > S60 Platform Services > Classic UI Services > Sounds API

    I get a "Panic ALLOC: 460dcd18" when execting this command

    iKeySounds->AddAppSoundInfoListL(R_MYAPP_SOUND_LIST);

    Anyone have any simple code for playing a simple sound?
    1. You are using a totally different API from the one required for the original question
    2. Manmay.gupta had no code when creating this thread, you obviously have one
    Are you sure about that you have the same problem?

    Anyway, ALLOC panic is a memory leak - and it is raised only when you exit your application, so it can not be caused by a method invocation.

Similar Threads

  1. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  2. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  3. cannot able to play a video file.
    By shalini.mishra in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-11-13, 16:54
  4. Nokia Smart Expert - solve this sound problem
    By tsoh_tan in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-10-30, 04:36
  5. How to play sound file with Java in 9210?
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 00:31

Posting Permissions

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