• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Sounds

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently developing a game in java and I need to know how to add sounds to my game, my teacher suggested me to not use applets, but I don't know. I have not the slightest clue on how to add sounds to the game and I would appreciate if anybody could either show me a guide or a tutorial where I can learn how to add sounds to my game or explain how am I supposed to do to make things work.

Basically I want to have music the moment I run the game, not a function where I click to get the sound, I have googled around, but all I can find is applets, isn't there a way to avoid applets or do I really have to use applets in order for the sound to work in my game?

Thanks in advance!

//Markus
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to have a look at OpenAL: https://joal-demos.dev.java.net/. There are also some starting tutorials on this site.
 
Markus Block
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joachim Rohde wrote:You might want to have a look at OpenAL: https://joal-demos.dev.java.net/. There are also some starting tutorials on this site.



Thanks
 
The knights of nee want a shrubbery. And a tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic