Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
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 2368 times)
0 Members and 1 Guest are viewing this topic.
Offline aNt

Senior Member




AFK


« 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 Member




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 Member




AFK


« 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 Member




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 Member




AFK


« 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.

 

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

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (20 views)
2014-09-24 16:12:06

Grunnt (46 views)
2014-09-23 14:38:19

radar3301 (28 views)
2014-09-21 23:33:17

BurntPizza (64 views)
2014-09-21 02:42:18

BurntPizza (36 views)
2014-09-21 01:30:30

moogie (42 views)
2014-09-21 00:26:15

UprightPath (51 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
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!