How do I use audio sample data from Java Sound?
问题 This question is usually asked as a part of another question but it turns out that the answer is long. I\'ve decided to answer it here so I can link to it elsewhere. Although I\'m not aware of a way that Java can produce audio samples for us at this time, if that changes in the future, this can be a place for it. I know that JavaFX has some stuff like this, for example AudioSpectrumListener, but still not a way to access samples directly. I\'m using javax.sound.sampled for playback and/or