diff options
author | Joerg Mueller <nexyon@gmail.com> | 2009-07-30 22:52:21 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2009-07-30 22:52:21 +0400 |
commit | a3dd5d04b3ecf446d9ac1e90d781966a0f00d844 (patch) | |
tree | 15b10bcbbbf7b988629e377e91a7f6ae7b8154ac /source/blender/blenloader/intern/readfile.c | |
parent | 368d9a1747b81ce32db481107bc51e3344608dac (diff) |
Added audio device settings. You can even switch them while playing!
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 301b3455202..f469541fb4d 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3986,10 +3986,13 @@ static void lib_link_scene(FileData *fd, Main *main) if(seq->ipo) seq->ipo= newlibadr_us(fd, sce->id.lib, seq->ipo); if(seq->scene) seq->scene= newlibadr(fd, sce->id.lib, seq->scene); if(seq->sound) { + printf("old sound: %d\n", seq->sound); seq->sound= newlibadr(fd, sce->id.lib, seq->sound); + printf("new sound: %d\n", seq->sound); if (seq->sound) { seq->sound->id.us++; seq->sound->flags |= SOUND_FLAGS_SEQUENCE; + seq->sound_handle= sound_new_handle(sce, seq->sound, seq->startdisp, seq->enddisp, seq->startofs); } } seq->anim= 0; @@ -4037,6 +4040,7 @@ static void direct_link_scene(FileData *fd, Scene *sce) sce->theDag = NULL; sce->dagisvalid = 0; sce->obedit= NULL; + memset(&sce->sound_handles, 0, sizeof(sce->sound_handles)); /* set users to one by default, not in lib-link, this will increase it for compo nodes */ sce->id.us= 1; |