Change some uses of frame to sample when talking about audio (#814).