Discussion Board

Results 1 to 4 of 4

Thread: set pitch

  1. #1
    Registered User rony_sha's Avatar
    Join Date
    Jan 2009
    Posts
    16
    I need to change the pitch of mp3 files while they are playing.
    I am using setPitch but I see no changes.
    Is anything special that I have to do?
    This is what I am doing:
    __________________________________________________________________________________
    InputStream is = getClass().getResourceAsStream("/test.mp3") ; //"/sb120.mid");
    p = Manager.createPlayer(is,"audio/mp3");


    p.realize();

    vc = (VolumeControl) p.getControl("VolumeControl");
    rc = (RateControl) p.getControl ("RateControl");
    pc = (PitchControl) p.getControl ("PitchControl");

    pc.setPitch(12000);
    ____________________________________________________________________________________

    Thanks

  2. #2

  3. #3
    Registered User rony_sha's Avatar
    Join Date
    Jan 2009
    Posts
    16
    Is there another way to play mp3 files?
    Maybe lower level API's that can provide better control?

  4. #4
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    For playing MP3 files by using Java ME, you can use the following controls for both Series 40 and Symbian:

    MetaDataControl

    RateControl

    StopTimeControl

    VolumeControl

    Regards,
    r2j7

Similar Threads

  1. Replies: 2
    Last Post: 2009-01-22, 06:03
  2. How to set up baudrate using Connector.open of Bluetooth
    By esamurai in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-10-10, 08:34
  3. How to Set wallpaper in 6120 ?
    By charming_192003 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-04-02, 14:54
  4. Replies: 16
    Last Post: 2008-03-10, 05:30
  5. how to set icon on control pane
    By deepakk in forum General Development Questions
    Replies: 2
    Last Post: 2008-03-04, 13:25

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