Decode a sample stream while testing.