summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-09-21 16:47:16 (UTC)
committer zecke <zecke>2004-09-21 16:47:16 (UTC)
commit8d63da87b471780142f0d0431bbcb37c1afba646 (patch) (unidiff)
tree5cd367a8e33a5261fa3d9fe4397303967c13b0ab /libopie2
parent2e877b93064d149ccafbbd86da55fbd244c3af4a (diff)
downloadopie-8d63da87b471780142f0d0431bbcb37c1afba646.zip
opie-8d63da87b471780142f0d0431bbcb37c1afba646.tar.gz
opie-8d63da87b471780142f0d0431bbcb37c1afba646.tar.bz2
QT_NO_SOUND is defined at least on MacOS
so don't fail with error for them
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ramses.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_ramses.cpp b/libopie2/opiecore/device/odevice_ramses.cpp
index c75ea3a..a060695 100644
--- a/libopie2/opiecore/device/odevice_ramses.cpp
+++ b/libopie2/opiecore/device/odevice_ramses.cpp
@@ -104,8 +104,6 @@ void Ramses::playAlarmSound()
104 104
105 changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd); 105 changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd);
106 snd.play(); 106 snd.play();
107#else
108#error QT_NO_SOUND defined
109#endif 107#endif
110} 108}
111 109
@@ -124,7 +122,7 @@ bool Ramses::suspend()
124 ::write(fd, writeCommand, sizeof(writeCommand) ); 122 ::write(fd, writeCommand, sizeof(writeCommand) );
125 ::close(fd); 123 ::close(fd);
126 } 124 }
127 125
128 ::usleep ( 200 * 1000 ); 126 ::usleep ( 200 * 1000 );
129 return true; 127 return true;
130} 128}