Sample decoder