General code cleanup, moving audio generation to separate functions
Authored by: kleinebre 2011-06-18
Parent: [r10]
Child: [r12]