Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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  
  sound delay  (Read 2550 times)
0 Members and 1 Guest are viewing this topic.
Offline aNt

Senior Devvie


« Posted 2006-05-04 08:37:39 »

ok ok ok.... yes i have been all over the web- nokia, sony, la la la.... and none seem to have a trick to get around this. my guess is its just the way j2me works on the phone.... if i loop a Player it has a 1 second delay when coming around the loop... even if i use a callback to loop the Player or look at the state in a loop... is there any way around this delay- or will i have to move to C++ for Symbian, so i can have a sound loop Tongue...

the app i want to make is simple- it has 2 Players that play once after another (with no delay- or a very very small delay).. i am never remaking the Players and i do all the prefeching and realizing at the start (once)... then all i should need to do is call player.start() and the sound should play instantly (i have read online)... this just isnt true- the sound doesnt play instantly at all... so if anyone else thinks there going mad- dont worry... its doesnt.... if it does can somone point out how? i was told to maybe put the Players in there own Threads- well like that worked Smiley lol

any pointers? i dont mind trying more things before i give up on j2me of this little project, and make it in Symbian instead... would be a shame- java rocks
Offline Anon666

Junior Devvie

aka Abuse/AbU5e/TehJumpingJawa

« Reply #1 - Posted 2006-05-04 17:29:33 »

Sound support is the single worst implemented feature across the entire midp platform.
There isn't a single device that has implemented the mmapi correctly.

What device is it you are you trying it on?
Offline aNt

Senior Devvie


« Reply #2 - Posted 2006-05-05 09:40:28 »

nokia 6680, nokia n90, sony k750, sony w810

none of them can loop a sound without a delay- even when i construct the data myself and make a timer to then call player.start(); it seems when calling 'start' there is a delay while the player is getting ready again (thought that was what '.realise'' was for)....
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Anon666

Junior Devvie

aka Abuse/AbU5e/TehJumpingJawa

« Reply #3 - Posted 2006-05-05 19:39:33 »

I'd be suprised if you can't get the 2 SE phones to loop correctly, they have one of the better mmapi implementations.

I have to confess, looping sound is rarely in any of the titles we port - as so few phones support it correctly, its simply a feature that isn't worth relying on.

What sound format are you using?
Offline aNt

Senior Devvie


« Reply #4 - Posted 2006-05-07 11:33:53 »

well we have tryed all the suported sound formats with no real joy. seems to always have a delay on starting the Player... so we are looking at rolling a timer that can start the Player early. i have read we can only have one Player play at any given time- also read its because of calling prefech etc- so im give to just try it and see... lots of lost people when it comes to sound it seems....
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

bilznatch (24 views)
2015-08-04 11:03:17

SHC (40 views)
2015-08-01 03:58:20

Jesse (24 views)
2015-07-29 04:35:27

Riven (46 views)
2015-07-27 16:38:00

Riven (25 views)
2015-07-27 15:35:20

Riven (27 views)
2015-07-27 12:26:13

Riven (18 views)
2015-07-27 12:23:39

BurntPizza (41 views)
2015-07-25 00:14:37

BurntPizza (54 views)
2015-07-24 22:06:39

BurntPizza (34 views)
2015-07-24 06:06:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!