×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    100

    Question play audio files

    Hi all,
    I want to play a audio file. Iam using Nokia S60 EMULATOR. I just want to know
    Does nokia S60 support Playing audio from a file (on Emulator)?
    if yes, where should i store my audio file and what is the path i should give
    Previously i used WTK2.5 and gave the path as "file:///root1/Testing/test1.wav" and stored the audio file at "C:\WTK25\appdb\DefaultColorPhone\filesystem\root1\Testing\test1.wav"
    One more question should i use WAV file or AMR files in Nokia S60 phones
    Thanks
    with regards,
    Khalandar Pasha N
    (khalandar_p@yahoo.co.in)

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    100

    Re: play audio files

    Quote Originally Posted by khalandar
    Hi all,
    I want to play a audio file. Iam using Nokia S60 EMULATOR. I just want to know
    Does nokia S60 support Playing audio from a file (on Emulator)?
    Thanks
    I Have got the answer for the first question i.e Nokia S60 Emulator can play Audio. I have used the code
    is = this.getClass().getResourceAsStream(resfile_name);
    Player player = Manager.createPlayer(is, "audio/x-wav");
    player.start();

    And I could play the audio file.
    If Any Expert present here could answer the other part of my question. That would almost solve my problem
    Thanks
    with regards,
    Khalandar Pasha N
    (khalandar_p@yahoo.co.in)

  3. #3
    Regular Contributor
    Join Date
    Oct 2005
    Posts
    50

    Re: play audio files

    Hi khalandar,

    It is possible to play audio from a file stored in the jar or file system. If you are using S60 emulator, the path (for accessing the input stream) should be given as "file://localhost/c:/Nokia/Sounds/play.wav" and the .wav file has to be placed in "C:\Nokia\Devices\Nokia_Prototype_SDK_4_0\devices\
    Prototype_4_0_S60_MIDP_Emulator\bin\Storage\Default\C\Nokia\Sounds\".

    The support on the different audio formats like wav/amr depends on the device implementation which can be found from the device specifications available at http://www.forum.nokia.com/devices/
    or by querying the device using 'Manager.getSupportedProtocols()'

    Best Regards,
    Gracy

Similar Threads

  1. To play raw audio data file
    By pawans in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-12-11, 11:38
  2. Saving audio files from RMS to phone storage
    By a_nemoff in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-05-17, 19:04
  3. Playing more audio files ? ......
    By senthilkumar05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-03-03, 11:04
  4. problem about audio files in UI40
    By prawwaree in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-04-18, 04:22
  5. how to play raw audio?
    By jssing99 in forum Symbian
    Replies: 1
    Last Post: 2002-11-11, 09:46

Posting Permissions

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