1
Audio / Error loading audio file
« on: January 12, 2020, 12:55:28 am »
So i have an issue where when im trying to load my wav sound file into the soundbuffer it just doesnt work i have tried with multiple files and different types of file paths but i keep getting error while trying to link the file.
Code: [Select]
if (!buffer.loadFromFile("sample.wav"))
{
cout << "error loading the sound file" << endl;
}
deathSound.setBuffer(this->buffer);