From kde-commits Thu May 29 19:52:38 2008 From: Christian Ehrlicher Date: Thu, 29 May 2008 19:52:38 +0000 To: kde-commits Subject: kdesupport/phonon/ds9 Message-Id: <1212090758.339990.1863.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121209076906237 SVN commit 814269 by chehrlic: add dummy for new function bool AudioOutput::setOutputDevice(const AudioOutputDevice & newDevice) M +9 -0 audiooutput.cpp M +3 -0 audiooutput.h --- trunk/kdesupport/phonon/ds9/audiooutput.cpp #814268:814269 @@ -70,6 +70,15 @@ setVolume(m_volume); } +#if (PHONON_VERSION >= PHONON_VERSION_CHECK(4, 2, 0)) + bool AudioOutput::setOutputDevice(const AudioOutputDevice & newDevice) + { + //TODO + //stub implementation + return setOutputDevice(newDevice.index()); + } +#endif + qreal AudioOutput::volume() const { return m_volume; --- trunk/kdesupport/phonon/ds9/audiooutput.h #814268:814269 @@ -46,6 +46,9 @@ int outputDevice() const; void setVolume(qreal newVolume); bool setOutputDevice(int newDevice); +#if (PHONON_VERSION >= PHONON_VERSION_CHECK(4, 2, 0)) + bool setOutputDevice(const AudioOutputDevice & newDevice); +#endif void setCrossFadingProgress(short currentIndex, qreal progress); Q_SIGNALS: