more changes on the audio code. Still work in progress. Again commiting to be able to continue work on a different machine.