diff options
| author | Matt Sieren <matthias@s-r-n.de> | 2015-11-10 20:41:03 +0100 |
|---|---|---|
| committer | Matt Sieren <matthias@s-r-n.de> | 2015-11-10 20:41:03 +0100 |
| commit | c15ea47d03feca87e379a3f735b8ede057b32fa0 (patch) | |
| tree | 0b61cdd6adcb221a6eef71c5717c4609b6ee8caf /maximilian.cpp | |
| parent | fba2ae1dd01c41319fc5c967b486e781447aa3ec (diff) | |
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.
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |
