playout() and some minor changes to sample()