Return an error if we don't find a compatible audio format
Refactor duplicate code in HandleAudioProcess