This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaSound

 
Christopher Arthur
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have two questions regarding the Java Sound Engine..

1. Can I use the java mixer to "mixdown" several inputs, i.e., set their gain and pan, then output it to a file? I haven't figured out how to open an output line (port?) off of the jave mixer.

2. I'm getting some kind of bug with my setup so far. I get 6 Clips from the mixer, open them with the same audioFormat and unique buffers, then I set the gain control on each of them through the mixer. Finally, I make a call to Clip.loop(). The bug is that although they play at the proper volume, there is an inital burst of sound at a level higher than it should be right at the beginning of playback. Any suggestions on how to make it go away? Also when I stop the clips with Clip.stop(), there is another sort of weird termination sound that makes it sound like a bubble popping or something like that.

Chris
 
Christopher Arthur
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heck, I'll just answer my own question from info from jsresources.org. The Java Sound Engine doesn't have any output lines, so you can't mixdown from it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!