Changes

Jump to: navigation, search

SPO600 Algorithm Selection Lab

134 bytes added, 15:17, 24 September 2018
Alternate Approaches
=== Alternate Approaches ===
The sample program uses the most basic, obvious algorithm for the problem. Let's call this "Algorithm 0", or the "Naive Algorithm". Try these alternate approaches to algorithms for scaling the sound samples by modifying copies of <code>vol1.c</code>. Edit the <code>Makefile</code> to build your modified programs as well as the original. Test each approach to see the performance impact:
# Pre-calculate a lookup table (array) of all possible sample values multiplied by the volume factor, and look up each sample in that table to get the scaled values.

Navigation menu