mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 10:29:19 +02:00
log sound files
This commit is contained in:
@@ -29,6 +29,8 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
|
|||||||
std::string file = Filename;
|
std::string file = Filename;
|
||||||
std::replace(file.begin(), file.end(), '\\', '/');
|
std::replace(file.begin(), file.end(), '\\', '/');
|
||||||
|
|
||||||
|
WriteLog("sound: loading file: " + file);
|
||||||
|
|
||||||
SNDFILE *sf = sf_open(file.c_str(), SFM_READ, &si);
|
SNDFILE *sf = sf_open(file.c_str(), SFM_READ, &si);
|
||||||
|
|
||||||
if (sf == nullptr)
|
if (sf == nullptr)
|
||||||
|
|||||||
Reference in New Issue
Block a user