diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-06-06 02:06:29 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-06-06 02:06:29 +0400 |
commit | ef5f78ecc7a6a7aac04207d3733087db8d03f5a6 (patch) | |
tree | 1038ed34bb7bfb794b81eefd21c437ab6ca5d0c8 /source | |
parent | f2daf2ca6b9aec02ebe8108c6354d1aebc869e99 (diff) |
3D Audio GSoC:
Making it possible to access blenders internal sounds via Python.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/BKE_sound.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/sound.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sound.h b/source/blender/blenkernel/BKE_sound.h index 04597fd666e..7402d501120 100644 --- a/source/blender/blenkernel/BKE_sound.h +++ b/source/blender/blenkernel/BKE_sound.h @@ -104,4 +104,6 @@ int sound_read_sound_buffer(struct bSound* sound, float* buffer, int length, flo int sound_get_channels(struct bSound* sound); +void* sound_get_factory(void* sound); + #endif 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; +} |