[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11021] branches/soc-2007-hcube/source/ blender/blenkernel/intern/sound.c: Now tinySND object is attached to bSample.

Csaba Hruska csaba.hruska at gmail.com
Fri Jun 22 19:10:59 CEST 2007


Revision: 11021
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11021
Author:   hcube
Date:     2007-06-22 19:10:59 +0200 (Fri, 22 Jun 2007)

Log Message:
-----------
Now tinySND object is attached to bSample. Added tinySND object deletion to free_sample function.

Modified Paths:
--------------
    branches/soc-2007-hcube/source/blender/blenkernel/intern/sound.c

Modified: branches/soc-2007-hcube/source/blender/blenkernel/intern/sound.c
===================================================================
--- branches/soc-2007-hcube/source/blender/blenkernel/intern/sound.c	2007-06-22 17:09:32 UTC (rev 11020)
+++ branches/soc-2007-hcube/source/blender/blenkernel/intern/sound.c	2007-06-22 17:10:59 UTC (rev 11021)
@@ -48,7 +48,6 @@
 		}
 	}
 //	if (sound->stream) free(sound->stream);
-	if (sound->snd_sound) SND_DeleteSound( sound->snd_sound );
 }
 
 void sound_free_sample(bSample *sample)
@@ -69,6 +68,10 @@
 			sample->alindex = SAMPLE_INVALID;
 		}
 
+		if (sample->snd_sample) {
+			SND_DeleteSound( sample->snd_sample );
+		}
+		
 		sample->type = SAMPLE_INVALID;
 	}
 }





More information about the Bf-blender-cvs mailing list