• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JavaSound

 
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.
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic