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>2020-09-07 19:11:56 +0300
committerJoerg Mueller <nexyon@gmail.com>2020-09-07 19:12:45 +0300
commit9cac181fbead28c0bf963bf2b9f82fddf3c2b7df (patch)
tree75d720dabbdc67d706ff916d46984a65545916d1 /extern/audaspace/bindings/C/AUD_Special.h
parent53ca638f2b738af644661bd4fabcf7e3fdf6e73b (diff)
Audaspace: port changes from upstream.
Adds possibility to report progress during audio mixdown.
Diffstat (limited to 'extern/audaspace/bindings/C/AUD_Special.h')
-rw-r--r--extern/audaspace/bindings/C/AUD_Special.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/extern/audaspace/bindings/C/AUD_Special.h b/extern/audaspace/bindings/C/AUD_Special.h
index 9faf9e4ee74..ce51fa2e04e 100644
--- a/extern/audaspace/bindings/C/AUD_Special.h
+++ b/extern/audaspace/bindings/C/AUD_Special.h
@@ -68,12 +68,15 @@ extern AUD_API int AUD_readSound(AUD_Sound* sound, float* buffer, int length, in
* \param format The file's container format.
* \param codec The codec used for encoding the audio data.
* \param bitrate The bitrate for encoding.
+ * \param callback A callback function that is called periodically during mixdown, reporting progress if length > 0. Can be NULL.
+ * \param data Pass through parameter that is passed to the callback.
* \return An error message or NULL in case of success.
*/
extern AUD_API const char* AUD_mixdown(AUD_Sound* sound, unsigned int start, unsigned int length,
unsigned int buffersize, const char* filename,
AUD_DeviceSpecs specs, AUD_Container format,
- AUD_Codec codec, unsigned int bitrate);
+ AUD_Codec codec, unsigned int bitrate,
+ void(*callback)(float, void*), void* data);
/**
* Mixes a sound down into multiple files.
@@ -86,12 +89,15 @@ extern AUD_API const char* AUD_mixdown(AUD_Sound* sound, unsigned int start, uns
* \param format The file's container format.
* \param codec The codec used for encoding the audio data.
* \param bitrate The bitrate for encoding.
+ * \param callback A callback function that is called periodically during mixdown, reporting progress if length > 0. Can be NULL.
+ * \param data Pass through parameter that is passed to the callback.
* \return An error message or NULL in case of success.
*/
extern AUD_API const char* AUD_mixdown_per_channel(AUD_Sound* sound, unsigned int start, unsigned int length,
unsigned int buffersize, const char* filename,
AUD_DeviceSpecs specs, AUD_Container format,
- AUD_Codec codec, unsigned int bitrate);
+ AUD_Codec codec, unsigned int bitrate,
+ void(*callback)(float, void*), void* data);
/**
* Opens a read device and prepares it for mixdown of the sound scene.