You Are Here:

Community: Developer Discussion Boards

#1 Old midi and .wav - different in Nokia phones? - 2008-09-23, 11:26

Join Date: Sep 2008
Posts: 10
dkunz
Offline
Registered User
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
Reply With Quote

#2 Old Re: midi and .wav - different in Nokia phones? - 2008-09-23, 18:00

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
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


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: midi and .wav - different in Nokia phones? - 2008-09-25, 08:58

Join Date: Sep 2008
Posts: 10
dkunz
Offline
Registered User
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
Reply With Quote

#4 Old Re: midi and .wav - different in Nokia phones? - 2008-09-25, 11:03

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Uhm... guessing... is your phone in Silence mode?

Pit


www.jappit.com - mobile and web blog
Reply With Quote

#5 Old Re: midi and .wav - different in Nokia phones? - 2008-09-25, 13:15

Join Date: Sep 2008
Posts: 10
dkunz
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ