Segfault fixed when recording audio.