summaryrefslogtreecommitdiff
path: root/Audio/soundout.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
committerChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
commit061dc1a349738747489ef0c0ebeeb4443e369501 (patch)
treeb5671ff01ada5a62d6d91a54125a6bd6e3209021 /Audio/soundout.cpp
parent77922fa33547ce24535f2e514c9a112dcb496f18 (diff)
New upstream version 2.3.0~rc3+repackupstream/2.3.0_rc3+repack
Diffstat (limited to 'Audio/soundout.cpp')
-rw-r--r--Audio/soundout.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Audio/soundout.cpp b/Audio/soundout.cpp
index fe7c58fb..f3ec3dce 100644
--- a/Audio/soundout.cpp
+++ b/Audio/soundout.cpp
@@ -7,6 +7,7 @@
#include <qmath.h>
#include <QDebug>
+#include "Logger.hpp"
#include "Audio/AudioDevice.hpp"
#include "moc_soundout.cpp"
@@ -104,15 +105,13 @@ void SoundOutput::restart (QIODevice * source)
// Windows implementation seems to forget the buffer size after a
// stop.
//qDebug () << "SoundOut default buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
- if (m_framesBuffered)
+ if (m_framesBuffered > 0)
{
-#if defined (Q_OS_WIN)
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
-#endif
}
m_stream->setCategory ("production");
m_stream->start (source);
- // qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
+ LOG_DEBUG ("Selected buffer size (bytes): " << m_stream->bufferSize () << " period size: " << m_stream->periodSize ());
}
void SoundOutput::suspend ()