-rw-r--r-- | libopie2/opiecore/device/odevice_ramses.cpp | 2 |
1 files changed, 0 insertions, 2 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 | |||
@@ -95,26 +95,24 @@ void Ramses::init(const QString&) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | 97 | ||
98 | void Ramses::playAlarmSound() | 98 | void Ramses::playAlarmSound() |
99 | { | 99 | { |
100 | #ifndef QT_NO_SOUND | 100 | #ifndef QT_NO_SOUND |
101 | static Sound snd ( "alarm" ); | 101 | static Sound snd ( "alarm" ); |
102 | if(!snd.isFinished()) | 102 | if(!snd.isFinished()) |
103 | return; | 103 | return; |
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 | ||
112 | 110 | ||
113 | bool Ramses::suspend() | 111 | bool Ramses::suspend() |
114 | { | 112 | { |
115 | if ( !isQWS( ) ) // only qwsserver is allowed to suspend | 113 | if ( !isQWS( ) ) // only qwsserver is allowed to suspend |
116 | return false; | 114 | return false; |
117 | 115 | ||
118 | sendSuspendmsg(); | 116 | sendSuspendmsg(); |
119 | ::sync(); | 117 | ::sync(); |
120 | 118 | ||