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:
authorJoerg Mueller <nexyon@gmail.com>2011-06-06 02:06:29 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-06-06 02:06:29 +0400
commitef5f78ecc7a6a7aac04207d3733087db8d03f5a6 (patch)
tree1038ed34bb7bfb794b81eefd21c437ab6ca5d0c8 /source/blender/blenkernel/intern/sound.c
parentf2daf2ca6b9aec02ebe8108c6354d1aebc869e99 (diff)
3D Audio GSoC:
Making it possible to access blenders internal sounds via Python.
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index e0e456a371e..f42492ef713 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -502,3 +502,8 @@ int sound_get_channels(struct bSound* sound)
return info.specs.channels;
}
+
+void* sound_get_factory(void* sound)
+{
+ return ((struct bSound*) sound)->playback_handle;
+}