Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor manmay.gupta's Avatar
    Join Date
    Dec 2008
    Location
    india
    Posts
    179
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Try not to multi-post. refer to other thread for pointer to solve your problem.

  3. #3
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,862
    which API r u using to play a file, plz show me some code whr have u written the play function

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,748
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved