Using QAudioOutput. Fixed some threads problems.