diff --git a/sound/outputs/openal_out.cpp b/sound/outputs/openal_out.cpp index d0ce47718..bce08d02f 100644 --- a/sound/outputs/openal_out.cpp +++ b/sound/outputs/openal_out.cpp @@ -4,8 +4,16 @@ #include "../../stream/filters/buffer_stream.hpp" -#include "al.h" -#include "alc.h" +#ifdef _WIN32 +#include +#include +#elif defined(__APPLE__) +#include +#include +#else +#include +#include +#endif using namespace Mangle::Sound; diff --git a/stream/servers/std_stream.hpp b/stream/servers/std_stream.hpp index 68aca621b..163f023f6 100644 --- a/stream/servers/std_stream.hpp +++ b/stream/servers/std_stream.hpp @@ -36,6 +36,7 @@ class StdStream : public Stream void seek(size_t pos) { + inf->clear(); inf->seekg(pos); if(inf->fail()) fail("seek error");