/**
* Creates a wave pattern out of a given sound.
* A new AudioInputStream is created with an additional wave effect.
* In the new sound the volume goes up and down in fixes intervals.
* If i is the length of the interval, then the amplitude of a sound
* at position x will be modified by a factor
* abs( 2 * ((x % i) / i -0.5))
*
* @param ais the original sound
* @param interval the length of the interval
*/
public static AudioInputStream wave1(AudioInputStream ais, int interval) {
// add your code here and change the return statement
return ais;
}
2006-11-13
23:45:09
·
1 answers
·
asked by
M
1
in
Computers & Internet
➔ Programming & Design