1
Audio / Visual Studio 2017 & SFML: Where To Load Audio From
« on: October 21, 2018, 03:04:58 am »
So I am in VS 2017 and using SFML to add sound into my OpenGL project.
I have a method that calls the Sound Buffer like so:
//initialize sound buffer
if (!buffer.loadFromFile(filePath))
return -1;
else {
return 0;
}
I then simply try to call my wav sound file from the project folder (where the .vcxproj and those files are).
i.e. LoadSound("sound\sound.wav");
However, this call continues to fail. Are my audio files supposed to be somewhere else?
Thanks!
I have a method that calls the Sound Buffer like so:
//initialize sound buffer
if (!buffer.loadFromFile(filePath))
return -1;
else {
return 0;
}
I then simply try to call my wav sound file from the project folder (where the .vcxproj and those files are).
i.e. LoadSound("sound\sound.wav");
However, this call continues to fail. Are my audio files supposed to be somewhere else?
Thanks!