Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2002-12-06 22:48:37 +0300
committerKent Mein <mein@cs.umn.edu>2002-12-06 22:48:37 +0300
commitcd4a60f5362b951826de8fc4218d30969c38095c (patch)
treee699411275651bd998a7ec5673116cb5c4218a2d /source/blender/src/editsound.c
parentfd05cdbaad4058520759478794a37a6204e8f0a3 (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 'source/blender/src/editsound.c')
-rw-r--r--source/blender/src/editsound.c43
1 files changed, 17 insertions, 26 deletions
diff --git a/source/blender/src/editsound.c b/source/blender/src/editsound.c
index 219c52010c4..d4cc52bcb8f 100644
--- a/source/blender/src/editsound.c
+++ b/source/blender/src/editsound.c
@@ -81,10 +81,6 @@
#include "SYS_System.h"
-#include "license_key.h"
-
-extern int LICENSE_KEY_VALID;
-
/* this might move to the external header */
void* sound_get_libraryinterface(void);
@@ -471,37 +467,32 @@ int sound_get_filetype_from_header(bSound* sound, PackedFile* pf)
#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:
- case SND_WAVE_FORMAT_DIALOGIC_OKI_ADPCM:
- case SND_WAVE_FORMAT_CONTROL_RES_VQLPC:
- case SND_WAVE_FORMAT_GSM_610:
- case SND_WAVE_FORMAT_MPEG3:
- filetype = SAMPLE_WAV;
- break;
- default:
+ case SND_WAVE_FORMAT_ADPCM:
+ case SND_WAVE_FORMAT_ALAW:
+ case SND_WAVE_FORMAT_MULAW:
+ case SND_WAVE_FORMAT_DIALOGIC_OKI_ADPCM:
+ case SND_WAVE_FORMAT_CONTROL_RES_VQLPC:
+ case SND_WAVE_FORMAT_GSM_610:
+ case SND_WAVE_FORMAT_MPEG3:
+ filetype = SAMPLE_WAV;
+ break;
+ default:
#endif
- {
- filetype = SAMPLE_INVALID;
- if (G.f & G_DEBUG) printf("Unsupported wav compression\n");
- }
+ {
+ filetype = SAMPLE_INVALID;
+ if (G.f & G_DEBUG) printf("Unsupported wav compression\n");
}
-#ifdef USE_FMOD
}
+#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))
{
filetype = SAMPLE_OGG_VORBIS;
}
- /* 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)))
{
filetype = SAMPLE_MP3;
}