opening and closing audio streams