audio: Factor out IStream operations into a helper class
am: 422afc131a

Change-Id: Ia1fc19b3423cd2c730e1af6dba35d5206e4decc9