--- a/radioapp/radioenginewrapper/src/radioenginewrapper_p.cpp Mon Sep 20 18:04:48 2010 +0300
+++ b/radioapp/radioenginewrapper/src/radioenginewrapper_p.cpp Tue Oct 05 09:31:22 2010 +0300
@@ -193,8 +193,11 @@
*/
void RadioEngineWrapperPrivate::AudioRoutingEventL( TInt aAudioDestination, TInt aError )
{
- Q_UNUSED( aAudioDestination )
- Q_UNUSED( aError )
+ if( !aError )
+ {
+ mUseLoudspeaker = aAudioDestination == RadioEngine::ERadioSpeaker;
+ RUN_NOTIFY_LOOP( mObservers, audioRouteChanged( mUseLoudspeaker ) );
+ }
}
/*!
@@ -216,15 +219,6 @@
/*!
* \reimp
*/
-void RadioEngineWrapperPrivate::AudioRouteChangedL( RadioEngine::TRadioAudioRoute aRoute )
-{
- mUseLoudspeaker = aRoute == RadioEngine::ERadioSpeaker;
- RUN_NOTIFY_LOOP( mObservers, audioRouteChanged( mUseLoudspeaker ) );
-}
-
-/*!
- * \reimp
- */
void RadioEngineWrapperPrivate::HandleSystemEventL( TRadioSystemEventType DEBUGVAR( aEventType ) )
{
LOG_FORMAT( "RadioEngineWrapperPrivate::HandleSystemEventL, Event: %d", aEventType );