diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-06 22:48:37 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-06 22:48:37 +0300 |
commit | cd4a60f5362b951826de8fc4218d30969c38095c (patch) | |
tree | e699411275651bd998a7ec5673116cb5c4218a2d /intern/SoundSystem | |
parent | fd05cdbaad4058520759478794a37a6204e8f0a3 (diff) |
sgefants patch to remove the License Key stuff.
(I noticed its not completely gone yet from the blender/source dir)
But its a big step in the right direction if it doesn't enable
all of the functionatlity already...
(Using cscope for LICENSE_KEY_VALID still turns up some stuff)
Kent
--
mein@cs.umn.edu
Diffstat (limited to 'intern/SoundSystem')
-rw-r--r-- | intern/SoundSystem/intern/SND_Utils.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/intern/SoundSystem/intern/SND_Utils.cpp b/intern/SoundSystem/intern/SND_Utils.cpp index d356f17b897..1048e701611 100644 --- a/intern/SoundSystem/intern/SND_Utils.cpp +++ b/intern/SoundSystem/intern/SND_Utils.cpp @@ -58,9 +58,6 @@ extern "C" { #include <unistd.h> #endif -//extern int LICENSE_KEY_VALID; -#define LICENSE_KEY_VALID true - #define BUFFERSIZE 32 @@ -171,11 +168,8 @@ bool SND_IsSampleValid(const STR_String& name, void* memlocation) /* only fmod supports compressed wav */ #ifdef USE_FMOD - /* and only valid publishers may use compressed wav */ - if (LICENSE_KEY_VALID) + switch (shortbuf) { - switch (shortbuf) - { case SND_WAVE_FORMAT_ADPCM: case SND_WAVE_FORMAT_ALAW: case SND_WAVE_FORMAT_MULAW: @@ -189,18 +183,17 @@ bool SND_IsSampleValid(const STR_String& name, void* memlocation) { break; } - } } #endif } #ifdef USE_FMOD /* only valid publishers may use ogg vorbis */ - else if (!memcmp(buffer, "OggS", 4) && LICENSE_KEY_VALID) + else if (!memcmp(buffer, "OggS", 4)) { result = true; } /* only valid publishers may use mp3 */ - else if (((!memcmp(buffer, "ID3", 3)) || (!memcmp(buffer, "ÿû", 2))) && LICENSE_KEY_VALID) + else if (((!memcmp(buffer, "ID3", 3)) || (!memcmp(buffer, "ÿû", 2)))) { result = true; } |