audioclip

JavaFX AudioClip.play()

依然范特西╮ 提交于 2019-12-13 10:26:35
问题 I am creating a JavaFX application that uses sounds for example for Button hovering. I create an JavaFX AudioClip to create and play the sound. It works ok so far (meaning: I hear the sound). When the play(); method is called, the sound is played immediatly. If I hover the button 10 times, I hear the sound 10 times. BUT: in the background JavaFX is creating hundreds of threads when the play() method returns (several hundred for each call). I cannot even see what it actually is, because there

Frequency and pitch relation for AudioClip - Unity3D

末鹿安然 提交于 2019-12-10 04:30:53
问题 I am trying to recreate the full range of a guitar only using 6 audio clips. I was thinking there would be a way to set frequency of an audio clip but audio.frequency only returns the frequency of the audio based on compression format and not the actual tone. I know I can read GetSpectrumData, but that solution is fairly complex and would require some Fourier Transform analysis or something of the kind. Affecting the pitch, it is easy to alter the tone so I can go up and down but is there a