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 /release/scripts/modules/bpy_types.py
parentf2daf2ca6b9aec02ebe8108c6354d1aebc869e99 (diff)
3D Audio GSoC:
Making it possible to access blenders internal sounds via Python.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r--release/scripts/modules/bpy_types.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index 3c1b454e72e..c30c893c9cc 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -409,6 +409,16 @@ class Text(bpy_types.ID):
TypeMap = {}
+class Sound(bpy_types.ID):
+ __slots__ = ()
+
+ @property
+ def factory(self):
+ """The aud.Factory object of the sound."""
+ import aud
+ return aud._sound_from_pointer(self.as_pointer())
+
+
class RNAMeta(type):
def __new__(cls, name, bases, classdict, **args):
result = type.__new__(cls, name, bases, classdict)