×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    10

    midi and .wav - different in Nokia phones?

    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
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: midi and .wav - different in Nokia phones?

    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
    Join Date
    Sep 2008
    Posts
    10

    Re: midi and .wav - different in Nokia phones?

    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
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: midi and .wav - different in Nokia phones?

    Uhm... guessing... is your phone in Silence mode?

    Pit

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    10

    Re: midi and .wav - different in Nokia phones?

    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

Posting Permissions

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