Try sprinkling in some specific values into your sounds.
```
public void set200ValuesToAmount ( int amount )
{
SoundSample [ ] sampleArray = this . getSamples ( ) ;
int start = sampleArray . length /2 - 100;
int end = s t a r t + 200;
SoundSample sample = null ;
// loop through some samples
for ( int i = start ; i < end ; i++)
{
sample = sampleArray [ i ] ;
sample . setValue ( amount ) ;
}
}
```
What happens if you set the value of a few hundred samples in the middle of a sound to 32767? You get a small clipping sound. Or a few hundred -32768? You will get a small clipping sound. Or a bunch of zeroes? What happens to the sound? It still sounds the same.
You might also like to view...
Where can a local variable be defined?
A. Outside a function B. Inside a function C. In a function header line D. Both B and C
What is the syntax of the conditional operator? Describe how the operator is used.
What will be an ideal response?
____________________ is addiction to certain online behaviors like gambling, video games, Internet surfing, sex, extreme sports, and so on.
Fill in the blank(s) with the appropriate word(s).
Changing measurements to larger increments in a chart can exaggerate the data peaks and valleys displayed in the chart
Indicate whether the statement is true or false