From c15ea47d03feca87e379a3f735b8ede057b32fa0 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Tue, 10 Nov 2015 20:41:03 +0100 Subject: Added runtime assertion for OGG New users might not end up digging through the actual implementation to uncomment the VORBIS definition right away. The runtime assertion will fire if a user calls loadOGG without the definition, thus reminding to uncomment. --- maximilian.cpp | 2 ++ maximilian.h | 1 + 2 files changed, 3 insertions(+) diff --git a/maximilian.cpp b/maximilian.cpp index adbb97d..8884e52 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -560,6 +560,8 @@ bool maxiSample::loadOgg(string fileName, int channel) { } } return result; // this should probably be something more descriptive +#else + assert(false); // called but VORBIS not defined! #endif return 0; } diff --git a/maximilian.h b/maximilian.h index c292598..fad99f2 100755 --- a/maximilian.h +++ b/maximilian.h @@ -40,6 +40,7 @@ #include #include #include +#include #include #include "math.h" #ifdef _WIN32 //|| _WIN64 -- cgit v1.3