Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Sharp programming  (Read 1013 times)
0 Members and 1 Guest are viewing this topic.
Offline mm1981

Innocent Bystander





« Posted 2005-06-07 14:59:11 »

I am trying to develop for sharp phones - what a nightmare. No support, no freely available sdk's and it is really difficult to become a partner on their via website.

Anyway despite this I have been giving it a go and am now trying to get sound working on a GX30, to no avail. I have created a MMF file and am using the following sound code:

try
    {
        sPlayer = SoundPlayer.getPlayer();
        sound = new Sound( "/sound.mmf" );
        aTrack = sPlayer.getTrack();
        }
        catch( Exception e )
        { }
        try
        {
        aTrack.setSound( sound );
        aTrack.setVolume( 127 );
        aTrack.play( 1 );
        }
        catch( Exception e ) {}

This compiles fine with the import com.vodafone.v10.sound.*; include but when trying it on the phone (as I cannot get an emulator to work!) the application kind of pauses then continues past without playing the sound, although I can hear a fuzzy noise from the speaker when it is supposed to be playing the sound. Can anyone think of why I am not getting the correct output. I created the mmf from a .way file using the yamaha convertor as suggested on the jcodeworks website.

Two final things regarding the GX range that would be great if someone could answer:

1. if the max jar size is 95k but the app still runs despite being 150k is this ok for release?
2. I have 90k of data to save in the rms but the jad value will only let me save 50k (MIDlet-Data-Size: 50000)or it wont install, so I tried splitting my rms into three seperate rms DB's all of around 30k, but after it is saving halfway through the second rms DB it crashes(the 50k limit I guess). Is it possible to have multiple RMS DB's to take the total DB size over the 50k barrier?

If you have managed to read all of this, well done, and thanks, If you manage to understand any of it, even better, and if you can scrape together an answer for me I would be over the moon, cheers.
Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #1 - Posted 2005-06-08 03:29:48 »

I thought this would be a thread about sharp pda's which I have, and have coded java on-board so I thought I might be of help...  Sorry  Undecided
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (66 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!