Rewrite increase volume so that it takes two inputs: the sound to increase in volume and a filename where the newly louder sound should be stored. Then increase the volume and write the sound out to the name file. You might also try rewriting it so that it takes an input filename instead of the sound, so that inputs are both filenames.
What will be an ideal response?
```
def increaseVolume(filenameIn, filenameOut):
sound = makeSound(filenameIn)
for sample in getSamples(sound):
value = getSampleValue(sample)
setSampleValue(sample ,value * 2)
writeSoundTo(sound, filenameOut)
```
Computer Science & Information Technology
You might also like to view...
When a PC is first booted, which of the following tests the processor, RAM, video card, disk controllers, disk drives, and keyboard?
a. POST b. BIOS setup c. Bootstrap loader d. CMOS chip
Computer Science & Information Technology
Given the UML class diagram seen in the accompanying figure, what is the class's name?
A. Rectangle B. double C. getArea D. Unknown
Computer Science & Information Technology