• Post Reply Bookmark Topic Watch Topic
  • New Topic

beeps and dings

 
fred baby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there anyway to send windows-style beeps and dings without having to use javax.media to load the sounds and such? i am developing a test program and i want to give a ding when the person clicks the correct button and an error-chord when the person clicked the incorrect button. thanks in advance.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Topic on Beep
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred,
Take a look at The Java Sound API. Since 1.3 it's part of the standard Java API.
The Java Sound Demo runs fine on my system without the JMF (javax.media). It uses the Java Sound API (javax.sound) and the source code is included.
Good Luck.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!