Results 1 to 3 of 3
  1. #1
    liluma's Avatar
    liluma is offline Member
    Join Date
    May 2011
    Location
    belgium
    Posts
    50
    Rep Power
    0

    Default playing music while program runs

    don't know if this even is possible...

    but i would like to get a music file to play while the program is running..

    (program would be a sort of easy RPG where you need to cross a maze)

    any idea if this is possible and how this could be implemented?

    every bit of help is appreciated. ^^

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by liluma View Post
    don't know if this even is possible...

    but i would like to get a music file to play while the program is running..

    (program would be a sort of easy RPG where you need to cross a maze)

    any idea if this is possible and how this could be implemented?

    every bit of help is appreciated. ^^
    Have a look at the static method Applet.getAudioClip( ... ) method; it loads an AudioClip which you can play. imho, that method doesn't belong there, it should be a static method of the AudioClip class (if it were a class, it's an interface) itself because it has nothing to do with Applets ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    liluma's Avatar
    liluma is offline Member
    Join Date
    May 2011
    Location
    belgium
    Posts
    50
    Rep Power
    0

Similar Threads

  1. Music player problem
    By abhinavhardikar in forum Advanced Java
    Replies: 2
    Last Post: 02-07-2010, 04:17 AM
  2. Replies: 0
    Last Post: 10-04-2009, 02:47 PM
  3. Music in Java Program
    By AWPtic in forum New To Java
    Replies: 1
    Last Post: 04-06-2009, 06:35 PM
  4. Program Runs in NetBEans but Not in cmd
    By MeathUltra in forum NetBeans
    Replies: 1
    Last Post: 12-09-2008, 05:38 AM
  5. Play music
    By carderne in forum New To Java
    Replies: 4
    Last Post: 08-05-2008, 01:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •