Fix some bugs in the audio-harness code.