Play soundclip and generate"wind" like sound
My knowledge in Java are very limited and I need to do a program for a project. However, I can't find how to do it.
2 things :
I want to play a soundclip. It can be a wav, a mp3, whatever will be the easiest to read I don't care since I will create that file and it will never change it after. This sound will happen when a specific event happen. I download the Demo of the Java Sound API from the official Java website, but it is quite hard for me to understand how to just read a simple file.
Also, that file will be a Mono file, wich I want to be able to gage the volume in 3D (2 fronts, 2 rears)... I don't know if something like that is possible in Java.. especially with my knowledge. In the worst case, a left/right balance could do it.
I need to generate a sound that will give a wind effect that will be more or less loud depending on parameters coming from an external sensor. I have absolutly no idea how to do that, but i though maybe i could use the MIDI sounds using an instrument like "helicopter" or something like that.
The first part is the most important one, it is essential to the project.
Any idea :confused: I'm really lost with all that.