SFML community forums
Help => Audio => Topic started by: oOhttpOo on April 27, 2015, 04:46:27 pm
-
I'm not expecting you to write a load of code for me (unless its very simple), but can anyone advise on if it is possible to sample the amplitutude/volume of the .wav/.ogg file every 1 second or less with the sfml audio? What function would allow me to do this? And please could you explain how it would work briefly if there is a function for it? Thanks ;)
-
Look at the audio tutorials and documentation. Everything that is possible is explained there.
Programming is about solving problems. If you have to rely on others to solve any problem for you, you'll have a really hard time.
-
Look at the audio tutorials and documentation. Everything that is possible is explained there.
Programming is about solving problems. If you have to rely on others to solve any problem for you, you'll have a really hard time.
Righto. Is it possible to do this with the getSound function? I mean like once every 100 milliseconds or something
-
There is no getSound() function.
Documentation exists for a reason...
-
The class or whatever it is. Some people are just so satirical with their posts they might of just not bothered to respond instead of actually trying to help. I'm not wasting anymore time going on this stupid forum, bye
-
If you are looking for help, the very least we can expect from you is that you express yourself clearly and show at least a bit of self-initiative. Apparently you don't even bother investing 2 minutes looking up the "class or whatever it is" in the documentation. Instead, you prefer letting us figure out what you could have meant, hoping that we solve your problem in the meantime. ::)
-
You may also want to consider what you mean by "volume". Do you mean the current position of the wave (sample value) or the perceived loudness (the overall volume of the sound) at that position?