When loading a sf::SoundBuffer or sf::Music through a stream, read() is passed a size which leads to reading past the end of the stream. See http://en.sfml-dev.org/forums/index.php?topic=7726 for details.