This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java sound  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!