*/
-#include "sndfile_base.h"
-#include "sndfile_content.h"
-#include "exceptions.h"
#ifdef DCPOMATIC_WINDOWS
#include <windows.h>
#define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
#endif
+#include <sndfile.h>
+
+#include "sndfile_base.h"
+#include "sndfile_content.h"
+#include "exceptions.h"
#include "i18n.h"
/* Here be monsters. See fopen_boost for similar shenanigans */
#ifdef DCPOMATIC_WINDOWS
_sndfile = sf_wchar_open (_sndfile_content->path(0).c_str(), SFM_READ, &_info);
-#else
+#else
_sndfile = sf_open (_sndfile_content->path(0).string().c_str(), SFM_READ, &_info);
#endif
-
+
if (!_sndfile) {
throw DecodeError (_("could not open audio file for reading"));
}