From efac864c25429cdb853fba82484606f94fb6d4ec Mon Sep 17 00:00:00 2001
From: Robert Jonsson <spamatica@gmail.com>
Date: Sat, 23 Apr 2011 23:44:22 +0000
Subject: don't warn samplerate for dummy audio

---
 muse2/muse/songfile.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/muse2/muse/songfile.cpp b/muse2/muse/songfile.cpp
index 7a690f74..3841a204 100644
--- a/muse2/muse/songfile.cpp
+++ b/muse2/muse/songfile.cpp
@@ -33,7 +33,7 @@
 #include "wave.h"
 #include "midictrl.h"
 #include "amixer.h"
-//#include "mixer/amixer.h"              // p4.0.2
+#include "audiodev.h"
 #include "conf.h"
 #include "driver/jackmidi.h"
 #include "keyevent.h"
@@ -1250,7 +1250,7 @@ void Song::read(Xml& xml)
                               _follow  = FollowMode(xml.parseInt());
                         else if (tag == "sampleRate") {
                               int sRate  = xml.parseInt();
-                              if (sRate != sampleRate)
+                              if (audioDevice->deviceType() != AudioDevice::DUMMY_AUDIO && sRate != sampleRate)
                                 QMessageBox::warning(muse,"Wrong sample rate", "The sample rate in this project and the current system setting differs, the project may not work as intended!");
                             }
                         else if (tag == "tempolist") {
-- 
cgit v1.2.3