author | zecke <zecke> | 2004-09-21 16:47:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-21 16:47:16 (UTC) |
commit | 8d63da87b471780142f0d0431bbcb37c1afba646 (patch) (side-by-side diff) | |
tree | 5cd367a8e33a5261fa3d9fe4397303967c13b0ab | |
parent | 2e877b93064d149ccafbbd86da55fbd244c3af4a (diff) | |
download | opie-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
-rw-r--r-- | libopie2/opiecore/device/odevice_ramses.cpp | 4 |
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 @@ -95,45 +95,43 @@ void Ramses::init(const QString&) } void Ramses::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); if(!snd.isFinished()) return; changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd); snd.play(); -#else -#error QT_NO_SOUND defined #endif } bool Ramses::suspend() { if ( !isQWS( ) ) // only qwsserver is allowed to suspend return false; sendSuspendmsg(); ::sync(); int fd; if ((fd = ::open("/proc/sys/pm/suspend", O_WRONLY)) >= 0) { char writeCommand[] = "1\n"; ::write(fd, writeCommand, sizeof(writeCommand) ); ::close(fd); } - + ::usleep ( 200 * 1000 ); return true; } bool Ramses::setDisplayBrightness(int bright) { //qDebug("Ramses::setDisplayBrightness(%d)", bright); bool res = false; int fd; // pwm1 brighness: 20 steps 500..0 (dunkel->hell) |