Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User rony_sha's Avatar
    Join Date
    Jan 2009
    Posts
    16
    The following code is working on the emulator:

    VolumeControl vc;
    Player p=null;
    try {
    if(p==null){
    InputStream is = getClass().getResourceAsStream("/test.mid");
    p = Manager.createPlayer(is,"audio/midi");
    }
    p.realize();
    vc = (VolumeControl) p.getControl("VolumeControl");
    if(vc != null) { vc.setLevel(100);}
    p.prefetch();
    p.start(); }
    catch(IOException ioe) {aTextField.setString(ioe.getMessage());}
    catch(MediaException e) {aTextField.setString(e.getMessage());}



    When I deploy it to the E71 it doesn't work and I get no error messages.
    What am I doing wrong?

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    Check you have "warning sounds" switched on in your ringer profile.

    Graham.

  3. #3
    Registered User rony_sha's Avatar
    Join Date
    Jan 2009
    Posts
    16
    You are absolutely right. It solved the problem.
    Its amazing, I would have never thought of it. What is the connection?
    Thanks a lot.

  4. #4
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    "Warning sounds" includes sounds from applications. You're not the first person to get tricked by this... if you don't get sound from a Series 60, it's the first thing to check (once you know!)

  5. #5
    Registered User rony_sha's Avatar
    Join Date
    Jan 2009
    Posts
    16
    Thanks again

Similar Threads

  1. Need help of my newest MP4 player?
    By magis1 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-12-31, 08:07
  2. Replies: 0
    Last Post: 2004-08-23, 10:07
  3. Midi annoyances
    By lax@work in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-03-26, 17:51
  4. trouble playing MIDI and WAV concurrently
    By dkainer in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-12-10, 02:03
  5. MIDI to RTTL or RTTL to MIDI
    By nuthead in forum Smart Messaging
    Replies: 1
    Last Post: 2003-06-16, 07:00

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