adpcm: Only increment heap_pos after finding a good enough sample