fixed bug in SoundFileSink.cpp