Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix rendering loud output + additional changes (Part 2)

justburner21db9468de32
diff --git a/toonz/sources/common/tsound/tsound_qt.cpp b/toonz/sources/common/tsound/tsound_qt.cpp
index fef761c20..f9f46e0b3 100644
--- a/toonz/sources/common/tsound/tsound_qt.cpp
+++ b/toonz/sources/common/tsound/tsound_qt.cpp
@@ -160,10 +160,13 @@ public:
switch (st->getSampleType()) {
case TSound::INT:
format.setSampleType(QAudioFormat::SignedInt);
+ break;
case TSound::UINT:
format.setSampleType(QAudioFormat::UnSignedInt);
+ break;
case TSound::FLOAT:
format.setSampleType(QAudioFormat::Float);
+ break;
}
format.setSampleRate(st->getSampleRate());