1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

* Temporary fix for wrong sampleRate detection by libmad.

This commit is contained in:
Christian Muehlhaeuser
2010-12-01 07:17:27 +01:00
parent 89da3f6f85
commit 77400f543c

View File

@@ -300,6 +300,9 @@ void
AudioEngine::setStreamData( long sampleRate, int channels ) AudioEngine::setStreamData( long sampleRate, int channels )
{ {
qDebug() << Q_FUNC_INFO << sampleRate << channels << thread(); qDebug() << Q_FUNC_INFO << sampleRate << channels << thread();
if ( sampleRate < 44100 )
sampleRate = 44100;
m_audio->initAudio( sampleRate, channels ); m_audio->initAudio( sampleRate, channels );
if ( m_audio->startPlayback() ) if ( m_audio->startPlayback() )
{ {