Wav / 6 - original book code. Will not compile.

(Nothing changed in Wav / 5)
Wav / 6 - fix call to writeSamples

out is passed by reference, not by pointer.
Wav / 6 - fix signature of writeSamples()

Need to pass ostream& not ofstream&.
Wav / 6 - fix comparison with string literal.