From 08f658b636c39705f2b919a185bb55ed7c053f59 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 21 Feb 2013 12:22:00 +0000 Subject: waveout plugin: using software volume as fallback git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3275 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Output/waveout/outputwaveoutfactory.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/plugins/Output/waveout/outputwaveoutfactory.cpp') diff --git a/src/plugins/Output/waveout/outputwaveoutfactory.cpp b/src/plugins/Output/waveout/outputwaveoutfactory.cpp index 62d8a8f32..ee282147e 100644 --- a/src/plugins/Output/waveout/outputwaveoutfactory.cpp +++ b/src/plugins/Output/waveout/outputwaveoutfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2012 by Ilya Kotov * + * Copyright (C) 2009-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -40,7 +40,14 @@ Output* OutputWaveOutFactory::create() Volume *OutputWaveOutFactory::createVolume() { - return new VolumeWaveOut(); + VolumeWaveOut *vol = new VolumeWaveOut(); + if(!vol->isSupported()) + { + qDebug("OutputWaveOutFactory: device doesn't support volume control"); + delete vol; + return 0; + } + return vol; } void OutputWaveOutFactory::showSettings(QWidget* parent) -- cgit v1.2.3-13-gbd6f