I'm using phsfsstream class from here: https://github.com/SFML/SFML/wiki/Source%3A-PhysicsFS-Input-Stream
#include "PhysfsStream.h"
#include <SFML/Audio.hpp>
#include <iostream>
int main(int argc, char* argv[])
{
PHYSFS_init(argv[0]);
PHYSFS_addToSearchPath("musics", 1);
sf::Music music;
PhysfsStream stream;
stream.open("sample.ogg");
music.openFromStream(stream);
music.play();
//music.stop(); //adding this line will prevent the program from crashing
PHYSFS_deinit();
}
this program crashes saying "pure virtual function call", but if I stop the music before it goes out of scope, it won't crash. Is this a bug in SFML?
using visual studio 2013 and sfml 2.2