diff options
Diffstat (limited to 'intern/audaspace/intern/AUD_C-API.cpp')
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp index 85a053238d0..e64ca1af9e7 100644 --- a/intern/audaspace/intern/AUD_C-API.cpp +++ b/intern/audaspace/intern/AUD_C-API.cpp @@ -321,6 +321,24 @@ AUD_Sound* AUD_bufferSound(AUD_Sound* sound) } } +AUD_Sound* AUD_monoSound(AUD_Sound* sound) +{ + assert(sound); + + try + { + AUD_DeviceSpecs specs; + specs.channels = AUD_CHANNELS_MONO; + specs.rate = AUD_RATE_INVALID; + specs.format = AUD_FORMAT_INVALID; + return new AUD_Sound(new AUD_ChannelMapperFactory(*sound, specs)); + } + catch(AUD_Exception&) + { + return NULL; + } +} + AUD_Sound* AUD_delaySound(AUD_Sound* sound, float delay) { assert(sound); |