hi i have a sound control on my website, i need to put a condition to check, when the xcoordinate is increasing, the sound volume increase and if xcoordinate is decreasing, sound volume decrease. I'm having trouble to set this condition, i dont know how to put this. Can you help me?
techyworld
0
Junior Poster in Training
Recommended Answers
Jump to PostIf you are talking about using pure JavaScript to control audio level, I doublt it can because the language is not a audio player...
Jump to PostIf you could obtain the value, then you may need a local variable and store the current captured value. Whenever the value is changed, compared the new value with the current value and deal with it. Then, update the current value to the changed value. If you still do not …
Jump to PostIt's going to be inside }} at line 41. Also, you need to have a currentVolume declared somewhere outside to be used as global for the function. A question I would ask is that can you specify the value of increase/decrease volume? If so, assume the value range from 0 …
All 9 Replies
Taywin
312
Posting Virtuoso
techyworld
0
Junior Poster in Training
Taywin
312
Posting Virtuoso
techyworld
0
Junior Poster in Training
Taywin
312
Posting Virtuoso
techyworld
0
Junior Poster in Training
techyworld
0
Junior Poster in Training
Taywin
312
Posting Virtuoso
techyworld
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.