aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Output/waveout/outputwaveoutfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Output/waveout/outputwaveoutfactory.cpp')
-rw-r--r--src/plugins/Output/waveout/outputwaveoutfactory.cpp11
1 files changed, 9 insertions, 2 deletions
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)