-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 127fee9..64fa199 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -320,24 +320,27 @@ void Zaurus::buzzer ( int sound ) | |||
320 | 320 | ||
321 | // Not all devices have real sound | 321 | // Not all devices have real sound |
322 | if ( d->m_model == Model_Zaurus_SLC7x0 | 322 | if ( d->m_model == Model_Zaurus_SLC7x0 |
323 | || d->m_model == Model_Zaurus_SLB600 ){ | 323 | || d->m_model == Model_Zaurus_SLB600 ){ |
324 | 324 | ||
325 | switch ( sound ){ | 325 | switch ( sound ){ |
326 | case SHARP_BUZ_TOUCHSOUND: | 326 | case SHARP_BUZ_TOUCHSOUND: { |
327 | static Sound touch_sound("touchsound"); | 327 | static Sound touch_sound("touchsound"); |
328 | snd = &touch_sound; | 328 | snd = &touch_sound; |
329 | } | ||
329 | break; | 330 | break; |
330 | case SHARP_BUZ_KEYSOUND: | 331 | case SHARP_BUZ_KEYSOUND: { |
331 | static Sound key_sound( "keysound" ); | 332 | static Sound key_sound( "keysound" ); |
332 | snd = &key_sound; | 333 | snd = &key_sound; |
334 | } | ||
333 | break; | 335 | break; |
334 | case SHARP_BUZ_SCHEDULE_ALARM: | 336 | case SHARP_BUZ_SCHEDULE_ALARM: |
335 | default: | 337 | default: { |
336 | static Sound alarm_sound("alarm"); | 338 | static Sound alarm_sound("alarm"); |
337 | snd = &alarm_sound; | 339 | snd = &alarm_sound; |
340 | } | ||
338 | break; | 341 | break; |
339 | } | 342 | } |
340 | } | 343 | } |
341 | 344 | ||
342 | // If a soundname is defined, we expect that this device has | 345 | // If a soundname is defined, we expect that this device has |
343 | // sound capabilities.. Otherwise we expect to have the buzzer | 346 | // sound capabilities.. Otherwise we expect to have the buzzer |