coreaudio: slight code cleanup
coreaudio: rewrite