mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-05 12:31:01 +00:00
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.
27 lines
461 B
C++
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
|