From b487a572633015a782d7d8f603990679f3c79ec1 Mon Sep 17 00:00:00 2001 From: shun_iwasawa Date: Jan 09 2019 07:27:09 +0000 Subject: test using QPointer::data for sender argument --- diff --git a/toonz/sources/common/tsound/tsound_qt.cpp b/toonz/sources/common/tsound/tsound_qt.cpp index cceb780..a0187e3 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