unsafe operations(open, close, write) in audio output

crash when applying audio format