| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 |
|
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 |
|
Uhm... guessing... is your phone in Silence mode?
Pit |
|
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); -------------------------------------------------------------- |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia 6630 - unable to play midi | jwon23 | Mobile Java Media (Graphics & Sounds) | 4 | 2006-04-23 00:14 |
| How to transfer .wav files in nokia communicator? | divyas | Symbian Media (Graphics & Sounds) | 0 | 2005-10-14 10:29 |
| nokia 3120..how to use .wav files ? | nokiaj2menewbie | Mobile Java General | 2 | 2005-08-24 20:39 |
| which phones are later than 6600? | aluckybird | Mobile Java General | 2 | 2004-11-30 19:51 |
| Correct MIME type for ADPCM *.wav file for nokia 3650 | rfreidson | General Browsing | 1 | 2003-03-10 04:47 |