Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java sound

 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to implement simple stopwatch for my excersize. I need a beep after every minute/half-minute etc.
Sound api is too advanced for me. I thought there would be beep method which gives beep of different frequency based on frequency passed to the method. But I found only ToolKit beep which doesnt accept anything. Is there any simple api/method for sound ?
Thanks
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's the Java Sound API. As you've already expressed intimidation of the learning path, perhaps reading the Sound Trail of Sun's Java Tutorial will help smooth the ride.
[ February 15, 2004: Message edited by: Dirk Schreckmann ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Other Java APIs forum...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a thought:
Perhaps you could avoid playing with different frequencies by simply beeping a different number of times depending on what event just occurred. This is very much how I remember my old stop watches behaving.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!