From dd159675e6e3c361bc20eaa6994265e73b6599ef Mon Sep 17 00:00:00 2001 From: eilers Date: Sun, 29 Aug 2004 12:42:03 +0000 Subject: Minor but important changes in API. Improved SQL performance: contactsbackend now supports look-ahead caching to speed up access. Fixed and improved look-ahead cache in todo-backend. Datebook backend will follow, soon ! --- (limited to 'libopie2/opiecore/device/odevice.cpp') diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 26c6dca..129215b 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp @@ -755,13 +755,16 @@ void ODevice::remPreHandler(QWSServer::KeyboardFilter*aFilter) void ODevice::playingStopped() { const_cast(sender())->disconnect( this ); +#ifndef QT_NO_SOUND if ( d->m_sound >= 0 ) { ::ioctl ( d->m_sound, MIXER_WRITE( d->m_mixer ), &d->m_vol ); ::close ( d->m_sound ); } +#endif } void ODevice::changeMixerForAlarm( int mixer, const char* file, Sound *snd ) { +#ifndef QT_NO_SOUND if (( d->m_sound = ::open ( file, O_RDWR )) >= 0 ) { if ( ::ioctl ( d->m_sound, MIXER_READ( mixer ), &d->m_vol ) >= 0 ) { Config cfg ( "qpe" ); @@ -779,6 +782,7 @@ void ODevice::changeMixerForAlarm( int mixer, const char* file, Sound *snd ) { } d->m_mixer = mixer; } +#endif } } -- cgit v0.9.0.2