SFML community forums

Help => Audio => Topic started by: Acumen on September 27, 2014, 02:23:44 am

Title: Array of sf::Music Causes Crash?
Post by: Acumen on September 27, 2014, 02:23:44 am
So using the newest snapshot (24 Sept 2014) openFromFile() causes a crash when using an array of sf:Music:

sf::Music* testMusic = new sf::Music[10];
testMusic[0].openFromFile("test.ogg");

Where this does not crash:

sf::Music testMusic;
testMusic.openFromFile("test.ogg");

Previously the array of sf::Music was fine. Is this intended? I could not find anything about sf::Music changing. Was I just lucky my code worked previously?
Title: Re: Array of sf::Music Causes Crash?
Post by: Acumen on September 27, 2014, 02:35:27 am
Ha not seconds after posting while trying to revert to my old properties I found I still was including the original source in one location. I should have given up earlier it would have saved me a bunch of head banging.

Sorry for the forum bloat! Feel free to deleting unless this might prevent someone else from adding more bloat in the future.