Merge remote-tracking branch 'origin/5.5' into 5.6
Change-Id: I01940fe4f3d059fbb425492a1748e2b5d9b6804b
This commit is contained in:
@@ -353,7 +353,8 @@ void PrivateSoundSource::stateChanged(QAudio::State state)
|
||||
#ifdef QT_QAUDIO_DEBUG
|
||||
qDebug() << this << "stateChanged " << state;
|
||||
#endif
|
||||
if (state == QAudio::IdleState && m_runningCount == 0)
|
||||
if ((state == QAudio::IdleState && m_runningCount == 0)
|
||||
|| (state == QAudio::StoppedState && m_audioOutput->error() != QAudio::NoError))
|
||||
emit soundeffect->stop();
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ void QT_WIN_CALLBACK QWindowsAudioInput::waveInProc( HWAVEIN hWaveIn, UINT uMsg,
|
||||
if(!qAudio)
|
||||
return;
|
||||
|
||||
QMutexLocker(&qAudio->mutex);
|
||||
QMutexLocker locker(&qAudio->mutex);
|
||||
|
||||
switch(uMsg) {
|
||||
case WIM_OPEN:
|
||||
|
||||
@@ -90,7 +90,7 @@ void CALLBACK QWindowsAudioOutput::waveOutProc( HWAVEOUT hWaveOut, UINT uMsg,
|
||||
if(!qAudio)
|
||||
return;
|
||||
|
||||
QMutexLocker(&qAudio->mutex);
|
||||
QMutexLocker locker(&qAudio->mutex);
|
||||
|
||||
switch(uMsg) {
|
||||
case WOM_OPEN:
|
||||
|
||||
Reference in New Issue
Block a user