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  
  Midi Lag  (Read 1468 times)
0 Members and 1 Guest are viewing this topic.
Offline MBrenaman

Junior Member




Javanaut


« Posted 2004-06-20 20:15:01 »

Hey yall, I'm very new to Java sound and anyways... I'm working on a fullscreen app game for webstart and the drum tracks in my midi files are lagging alittle to much.

Right now, I'm using the MidiPlayer class I found on that Brakeen guy's site.

I'm not really sure what to do (if there's even a solution) so any input would be appreciated  Huh

-Mathew Brenaman
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #1 - Posted 2004-06-20 20:26:19 »

Bad timing and bad sound are a sure sign for not having a soundbank installed.

http://java.sun.com/products/java-media/sound/soundbanks.html

弾幕 ☆ @mahonnaiseblog
Offline MBrenaman

Junior Member




Javanaut


« Reply #2 - Posted 2004-06-21 05:35:43 »

Yawn, I took a look at the page, maybe its beacuse its 3am but does this mean that user of the game will need to download the soundbank too? I'm not really sure how this works.

-Mathew Brenaman
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline MBrenaman

Junior Member




Javanaut


« Reply #3 - Posted 2004-06-21 06:32:11 »

Sorry to double post but I looked around I guess I'll have to include the .gm with the game and (attempt) to load it from the games jar. This really really sucks! Why does Java always have these short comings!  Angry

EDIT: ok I got the medium soundbank file and Im running and as expected the instruments sound different. Right now I'm using Anvil Studio to edit/play midi files and it doesnt seem to have a function to load the soundbank.gm so I can edit and hear what it will sound like in my game. Is there a way or any software that will let me load the soundbank?

-Mathew Brenaman
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #4 - Posted 2004-06-21 12:51:24 »

You can load the sound banks and then tell the synthesizer which one to use.

[CODE]
Soundbank soundbank = MidiSystem.getSoundbank()

synth.loadAllInstruments(soundbank);
[/CODE]

synth is a synthesizer declared elsewhere in the app.  You can write a quick app to play a midi using any of the three soundbanks available from Sun.

HTH,
Aaron R>
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 (19 views)
2014-09-12 09:08:26

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

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

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

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

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

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

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

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

mitcheeb (35 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!