1,885
edits
Changes
→Basic Sound Scale Program
# Unpack the archive <code>/public/spo600-algorithm-selection-lab.tgz</code>
# Examine the <code>vol1.c</code> source code. This program:
## Creates 5,000,000 random "sound samples" in an input a data array (the number of samples is set in the <code>vol.h</code> file).## Scales those samples by the volume factor 0.75 and stores them in an output back to the data array.## Sums the output array and prints the sum.'''(Why is this important?)'''
# Build and test this file.
#* Does it produce the same output each time?