English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

/**
* 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

1 answers

Your question is not very clear. But I'm open for discussion. Mail me with detail clarification.

2006-11-14 05:48:43 · answer #1 · answered by binaryFusion 5 · 0 0

fedest.com, questions and answers