Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / J2ME / Sharp programming on: 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.
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (39 views)
2014-10-17 03:59:02

Norakomi (29 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (57 views)
2014-10-14 00:39:48

TehJavaDev (56 views)
2014-10-14 00:35:47

TehJavaDev (47 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!