iostream71
Programmer
i'm using a sound object to control music in the background. i have a button to turn it on and off, but i want the music to fade in/out. can i just use a for loop and the setVolume function to do that or is it bad design?
fade in like this:
for(i = 0; i<= 100; i++)
soundObject.setVolume(i);
fade in like this:
for(i = 0; i<= 100; i++)
soundObject.setVolume(i);