Torque3D/Engine/lib/openal-soft/common/alfstream.cpp
marauder2k7 a745fc3757 Initial commit
added libraries:
opus
flac
libsndfile

updated:
libvorbis
libogg
openal

- Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
2024-03-21 17:33:47 +00:00

27 lines
461 B
C++

#include "config.h"
#include "alfstream.h"
#include "strutils.h"
#ifdef _WIN32
namespace al {
ifstream::ifstream(const char *filename, std::ios_base::openmode mode)
: std::ifstream{utf8_to_wstr(filename).c_str(), mode}
{ }
void ifstream::open(const char *filename, std::ios_base::openmode mode)
{
std::wstring wstr{utf8_to_wstr(filename)};
std::ifstream::open(wstr.c_str(), mode);
}
ifstream::~ifstream() = default;
} // namespace al
#endif