×

Discussion Board

Results 1 to 4 of 4

Thread: set pitch

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    set pitch

    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
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: set pitch

    Is there another way to play mp3 files?
    Maybe lower level API's that can provide better control?

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: set pitch

    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
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

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
  •  
×