Skip to content

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

C

test using QPointer::data for sender argument

shun_iwasawab487a5726330
diff --git a/toonz/sources/common/tsound/tsound_qt.cpp b/toonz/sources/common/tsound/tsound_qt.cpp
index cceb78023..a0187e359 100644
--- a/toonz/sources/common/tsound/tsound_qt.cpp
+++ b/toonz/sources/common/tsound/tsound_qt.cpp
@@ -182,7 +182,7 @@ public:
qint64 audioBufferSize = format.bytesForDuration(100000);
m_audioOutput->setBufferSize(audioBufferSize);
m_audioOutput->setNotifyInterval(50);
- QObject::connect(m_audioOutput, &QAudioOutput::notify, [=](){ sendBuffer(); });
+ QObject::connect(m_audioOutput.data(), &QAudioOutput::notify, [=](){ sendBuffer(); });
reset();
}/* audio buffer too small, so optimization not uses