diff --git a/Audio/soundout.cpp b/Audio/soundout.cpp index bd71d8560..d64f3fb2c 100644 --- a/Audio/soundout.cpp +++ b/Audio/soundout.cpp @@ -106,9 +106,11 @@ void SoundOutput::restart (QIODevice * source) //qDebug () << "SoundOut default buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize (); if (m_framesBuffered) { - //#if defined (Q_OS_WIN) +#if defined (Q_OS_WIN) m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered)); - //#endif +#else + m_stream->setBufferSize (m_stream->format().bytesForFrames (3456)); +#endif } m_stream->setCategory ("production"); m_stream->start (source);