16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

log sound files

This commit is contained in:
milek7
2018-02-10 18:51:25 +01:00
parent 6987ad8af8
commit 303a1d8fb4

View File

@@ -29,6 +29,8 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
std::string file = Filename;
std::replace(file.begin(), file.end(), '\\', '/');
WriteLog("sound: loading file: " + file);
SNDFILE *sf = sf_open(file.c_str(), SFM_READ, &si);
if (sf == nullptr)