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   
Pages: [1]
  ignore  |  Print  
  Playing music in an application  (Read 873 times)
0 Members and 1 Guest are viewing this topic.
Offline AliveAndKicking

Junior Newbie




Java games rock!


« Posted 2005-01-23 05:28:47 »

Can anyone post code to play a simple song in an application.

I know how to play songs in an applet, but that doesn't work with an application.  Something with getCodeBase method can't be found.

I've searched all over the internet, and they either use a really un-necessarily long tutorial or just paste code and don't give any description on how it works.  They just say "Use this code here" and don't explain things.

I'm the kind of person that has to know what every little thing is for and means.

The good news is I've created an application that allows the user to control a character and run around the screen! I know maybe not that big of a deal but this is the first time I've ever done it so I'm pretty excited about it.  Now I want to add music to it and then maybe floating bad guys around the screen to shoot at.

All help is appreciated.


Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #1 - Posted 2005-01-24 11:17:24 »

by song do u mean an mp3 file, a wav file or a midi files?
Offline AliveAndKicking

Junior Newbie




Java games rock!


« Reply #2 - Posted 2005-01-24 14:16:55 »

midi files
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Malohkan

Senior Duke




while (true) System.out.println("WOO!!!!");


« Reply #3 - Posted 2005-01-24 15:01:39 »

http://java.dnsalias.com/

Check out GAGESound.  It does exactly that for you Smiley

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
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.

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

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

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

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

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

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

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

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

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

BurntPizza (82 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!