An abstract soundfile decoder