adpcm: Use a hash table to improve checking for duplicate samples