cin audio: restructure decoding loop to avoid a separate counter variable