Fix for each_sample

I wanted to use the each_sample method for a project, and it failed due to a missing attr_read method in sound_data. This simple alteration fixes that.