Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User dkunz's Avatar
    Join Date
    Sep 2008
    Posts
    10
    hello,

    i am trying to port my java code that was fully functional on my sonyericsson k750 to my new n95 8gb. However, i noticed my midi commands (playing a single midi note e.g. snare drum) as well as my .wav playing routines - the later reads a file from the memory are not working anymore.
    any hints??? any links / examples?

    thanks, Dominik

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi Dominik,

    you can find all MMAPI support infos for Nokia devices here:

    http://www.forum.nokia.com/info/sw.n..._0_en.xls.html

    About your specific issue, are you getting any Exceptions? If yes, try posting related code, so It'll be easier to spot out the possible reasons.

    Pit

  3. #3
    Registered User dkunz's Avatar
    Join Date
    Sep 2008
    Posts
    10
    Hello Pit,

    Thanks for your reply.
    Regarding the Midi issue:

    no, i don't get any exceptions. The code seems to work fairly ok (massive time delay) on the emulator but downloading and running the code on the the mobile doesn't result in any sound.

    I thought maybe someone else might have implemented some Midi soudn effects in this forum....

    Best, Dominik

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Uhm... guessing... is your phone in Silence mode?

    Pit

  5. #5
    Registered User dkunz's Avatar
    Join Date
    Sep 2008
    Posts
    10
    no, it's not. i can hear someone calling and i can also listen to a .mid file and to .mp3 files (also tried using headphones).
    I attached a code snippet. Maybe someone could have a look at it.
    As said, it all worked fine on my K750i.

    Thanks, Dominik

    --------------------------------------------------------------´
    private Player midiPlayer;
    private MIDIControl midicontrol;
    .
    .
    .

    public void midiSetup(){
    try{
    if (midiPlayer == null){
    midiPlayer = Manager.createPlayer(Manager.MIDI_DEVICE_LOCATOR);
    midiPlayer.prefetch();
    }
    midicontrol = (MIDIControl) midiPlayer.getControl("javax.microedition.media.control.MIDIControl");
    }
    catch (Exception e){
    midicontrol = null;
    return;
    }
    }
    public void playMidiNote(int eventType, int note, int velocity) {
    if(midicontrol == null)
    return;
    midicontrol.shortMidiEvent(eventType, note, velocity);
    --------------------------------------------------------------

Similar Threads

  1. Nokia 6630 - unable to play midi
    By jwon23 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-04-22, 23:14
  2. How to transfer .wav files in nokia communicator?
    By divyas in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-10-14, 09:29
  3. nokia 3120..how to use .wav files ?
    By nokiaj2menewbie in forum Mobile Java General
    Replies: 2
    Last Post: 2005-08-24, 19:39
  4. which phones are later than 6600?
    By aluckybird in forum Mobile Java General
    Replies: 2
    Last Post: 2004-11-30, 18:51
  5. Correct MIME type for ADPCM *.wav file for nokia 3650
    By rfreidson in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2003-03-10, 03:47

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