Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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 859 times)
0 Members and 1 Guest are viewing this topic.
Offline mm1981

JGO Visitor




« Posted 2005-06-07 16: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 05: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.111 seconds with 21 queries.