Fixed audio stream crash and compiler warning