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
path: root/extern
diff options
context:
space:
mode:
authorJörg Müller <nexyon@gmail.com>2022-07-16 23:20:08 +0300
committerJörg Müller <nexyon@gmail.com>2022-07-16 23:20:08 +0300
commitd136a996caa9da3024bb90c543764b895201a4e9 (patch)
tree28de719347b8ec48ea3c5ed4913c093d03abf641 /extern
parent1e4c557d82b005578dd2b361701241b66ccee42f (diff)
Audaspace: minor formatting fix for last commit.
Diffstat (limited to 'extern')
-rw-r--r--extern/audaspace/bindings/C/AUD_Special.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/extern/audaspace/bindings/C/AUD_Special.cpp b/extern/audaspace/bindings/C/AUD_Special.cpp
index 686187bc70c..a5ecb7a6dc0 100644
--- a/extern/audaspace/bindings/C/AUD_Special.cpp
+++ b/extern/audaspace/bindings/C/AUD_Special.cpp
@@ -282,15 +282,16 @@ AUD_API int AUD_mixdown(AUD_Sound* sound, unsigned int start, unsigned int lengt
std::shared_ptr<IWriter> writer = FileWriter::createWriter(filename, convCToDSpec(specs), static_cast<Container>(format), static_cast<Codec>(codec), bitrate);
FileWriter::writeReader(reader, writer, length, buffersize, callback, data);
- return 1;
+ return true;
}
catch(Exception& e)
{
- if(error && errorsize) {
+ if(error && errorsize)
+ {
std::strncpy(error, e.getMessage().c_str(), errorsize);
error[errorsize - 1] = '\0';
}
- return 0;
+ return false;
}
}
@@ -332,15 +333,16 @@ AUD_API int AUD_mixdown_per_channel(AUD_Sound* sound, unsigned int start, unsign
reader->seek(start);
FileWriter::writeReader(reader, writers, length, buffersize, callback, data);
- return 1;
+ return true;
}
catch(Exception& e)
{
- if(error && errorsize) {
+ if(error && errorsize)
+ {
std::strncpy(error, e.getMessage().c_str(), errorsize);
error[errorsize - 1] = '\0';
}
- return 0;
+ return false;
}
}