Decode InputStreamAudio

Also refactoring InputStreamVideo.