From add697407af6e71f62744aa47141ffc0a8f24e1a Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 9 Dec 2004 13:46:38 +0000 Subject: [PATCH] Bug fix #1995 Unpacking a file with packed sounds didn't save the samples... was due to *very* weird method samples were put in Blender. --- source/Makefile | 2 +- source/blender/src/editsound.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/Makefile b/source/Makefile index 6af0ec6aac0..27ff63c7445 100644 --- a/source/Makefile +++ b/source/Makefile @@ -401,7 +401,7 @@ else NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a NAN_SND_LIBS += $(SOUNDSYSTEM) else - ifeq ($OS),solaris) + ifeq ($(OS), solaris) NAN_SND_LIBS = $(SOUNDSYSTEM) NAN_SND_LIBS += $(DUMMYSOUND) NAN_SND_LIBS += $(OPENALSOUND) diff --git a/source/blender/src/editsound.c b/source/blender/src/editsound.c index 5093a6f57a1..b47bf4c580e 100644 --- a/source/blender/src/editsound.c +++ b/source/blender/src/editsound.c @@ -203,14 +203,14 @@ void sound_initialize_sounds(void) /* clear the soundscene */ SND_RemoveAllSounds(ghSoundScene); SND_RemoveAllSamples(ghSoundScene); + } - /* initialize sounds */ - sound = G.main->sound.first; - while (sound) - { - sound_sample_is_null(sound); - sound = (bSound *) sound->id.next; - } + /* initialize sample blocks (doesnt call audio system, needs to be done once after load */ + sound = G.main->sound.first; + while (sound) + { + sound_sample_is_null(sound); + sound = (bSound *) sound->id.next; } }