Simplified a little and changed coding style a bit in the audio input core
Simplified a little the audio output core code and made it follow the usual coding style