Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2004

Tip: Looking for answers? Try searching our database.

Playing a midi in midp (J2ME).

Thread view: 
inquirydog - 07 May 2004 20:15 GMT
Hi-

       The topic says what I am trying to do- simply play a midi on a
midp device (my cell phone).  From searching the web, I see that I
probably should use "Player player = Manager.createPlayer()".  I tried
this, but get the error message

ALERT: Native method 'com/sun/midp/main/Configuration::getProperty0'
not found

I got the midp sources and found com.sun.midp.main.Configuration, and
it is a native encoded class (in c).  getProperty0 there.  I don't
know why my ide (Netbeans) does not find it.  I grep'ed through J2ME
and found getProperties0 in bin/zayit.dll, but don't know in what way
I can tell my program to find it.

       I am going crazy with this (spent much of yesterday trying to
fix it).  I would be thankful for any help.

                                    thanks
                                            -Inquirydog
Roedy Green - 07 May 2004 20:46 GMT
>        The topic says what I am trying to do- simply play a midi on a
>midp device (my cell phone).  From searching the web, I see that I
[quoted text clipped - 3 lines]
>ALERT: Native method 'com/sun/midp/main/Configuration::getProperty0'
>not found
any com.sun stuff your are not supposed to use directly, not that you
necessarily did.

See http://mindprod.com/jgloss/midi.html

If you can't get it to work,
for $20 I'll figure it out and write you the code.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Darryl L. Pierce - 08 May 2004 13:50 GMT
>>        The topic says what I am trying to do- simply play a midi on a
>>midp device (my cell phone).  <snip>
>
> See http://mindprod.com/jgloss/midi.html

Your entry in the Glossary has no information on the MIDP, which is what the
OP is using, as evidenced in the first sentence of his post.

Signature

Darryl L. Pierce <mcpierce@myrealbox.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"

Darryl L. Pierce - 08 May 2004 13:50 GMT
>         The topic says what I am trying to do- simply play a midi on a
> midp device (my cell phone).  

What phone is it? Is it a MIDP 1.0 or MIDP 2.0 device? The MIDP 1.0 does not
have sound APIs, but most OEMs provide their own proprietary APIs.

> From searching the web, I see that I
> probably should use "Player player = Manager.createPlayer()".  I tried
[quoted text clipped - 8 lines]
> and found getProperties0 in bin/zayit.dll, but don't know in what way
> I can tell my program to find it.

That's not a part of the MIDP APIs; that's part of the emulator
implementation.

>         I am going crazy with this (spent much of yesterday trying to
> fix it).  I would be thankful for any help.

Please tell us the phone you're targeting and the carrier.

Signature

Darryl L. Pierce <mcpierce@myrealbox.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.