patch for dsf/dsdiff direct scanning
only write out the number of samples which are decoded