diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-04-21 00:55:10 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-04-21 00:55:10 (GMT) |
commit | f94ba8c005085ebc438360a4607d00d5584c355e (patch) | |
tree | ec4adf36663226b4fae73332bfb32c76b5e30a5f /src/multimedia | |
parent | f8ae6e9f9819023913699ca7370ea32ea8ab94b3 (diff) | |
download | Qt-f94ba8c005085ebc438360a4607d00d5584c355e.zip Qt-f94ba8c005085ebc438360a4607d00d5584c355e.tar.gz Qt-f94ba8c005085ebc438360a4607d00d5584c355e.tar.bz2 |
QAudioOutput always uses default output device
Task-number:QTBUG-9766
Reviewed-by:Derick Hawcroft
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/audio/qaudiooutput_alsa_p.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/multimedia/audio/qaudiooutput_alsa_p.cpp b/src/multimedia/audio/qaudiooutput_alsa_p.cpp index cf3726b..afae8b7 100644 --- a/src/multimedia/audio/qaudiooutput_alsa_p.cpp +++ b/src/multimedia/audio/qaudiooutput_alsa_p.cpp @@ -84,8 +84,7 @@ QAudioOutputPrivate::QAudioOutputPrivate(const QByteArray &device, const QAudioF resuming = false; opened = false; - QStringList list1 = QString(QLatin1String(device)).split(QLatin1String(":")); - m_device = QByteArray(list1.at(0).toLocal8Bit().constData()); + m_device = device; timer = new QTimer(this); connect(timer,SIGNAL(timeout()),SLOT(userFeed())); @@ -282,11 +281,11 @@ bool QAudioOutputPrivate::open() int count=0; unsigned int freakuency=settings.frequency(); - QString dev = QLatin1String(m_device.constData()); + QString dev = QString(QLatin1String(m_device.constData())); QList<QByteArray> devices = QAudioDeviceInfoInternal::availableDevices(QAudio::AudioOutput); if(dev.compare(QLatin1String("default")) == 0) { #if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14) - dev = QLatin1String(devices.first().constData()); + dev = QLatin1String(devices.first()); #else dev = QLatin1String("hw:0,0"); #endif |