Refactor SoundFile open/close methods
SoundFile needs to be open to get duration
Fix duration/numChannels for looped buffers