Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - TeGeek

Pages: [1]
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);

2
Audio / Audio linking error
« on: January 11, 2020, 04:27:13 pm »
so im getting linking error when im trying to use sf::sound and sf::soundbuffer but i have the sfml/audio.hpp included in the same file im working in.

Pages: [1]