changeset 57 | 21be958eb3ce |
parent 54 | a8ba0c289b44 |
56:04837bf3a628 | 57:21be958eb3ce |
---|---|
57 /** KRadioRadioSwitchDelay value must not be too small, otherwise problems with |
57 /** KRadioRadioSwitchDelay value must not be too small, otherwise problems with |
58 radioserver will occur, when swithing between valid and invalid presets */ |
58 radioserver will occur, when swithing between valid and invalid presets */ |
59 const TInt KRadioRadioSwitchDelay = 300; // In milliseconds |
59 const TInt KRadioRadioSwitchDelay = 300; // In milliseconds |
60 |
60 |
61 const TInt KRadioThousand = 1000; |
61 const TInt KRadioThousand = 1000; |
62 const TInt KRadioMillion = KRadioThousand * KRadioThousand; |
62 const TInt KRadioVolumeRampUpDelay = 200000; |
63 |
63 |
64 // Country order from timezones.rss. Default = 0, Japan = 1, America = 2. |
64 // Country order from timezones.rss. Default = 0, Japan = 1, America = 2. |
65 const TUint KCityGroupRegions[] = |
65 const TUint KCityGroupRegions[] = |
66 {0,0,0,0,0,0,2,0,0,0,0,2,0,2,0,2,0,2,0,2,2,0,2,0,0,2,2,2,0,2,0,0, //32 |
66 {0,0,0,0,0,0,2,0,0,0,0,2,0,2,0,2,0,2,0,2,2,0,2,0,0,2,2,2,0,2,0,0, //32 |
67 0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0, //64 |
67 0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0, //64 |
567 if ( RadioInitialized() && |
567 if ( RadioInitialized() && |
568 iRadioEnabled && |
568 iRadioEnabled && |
569 OkToPlay( iSettings->EngineSettings().TunedFrequency() ) ) |
569 OkToPlay( iSettings->EngineSettings().TunedFrequency() ) ) |
570 { |
570 { |
571 SetAudioMode( iSettings->EngineSettings().OutputMode() ); |
571 SetAudioMode( iSettings->EngineSettings().OutputMode() ); |
572 iPlayerUtility->SetVolumeRamp( TTimeIntervalMicroSeconds( MAKE_TINT64( 0, KRadioMillion ) ) ); |
572 iPlayerUtility->SetVolumeRamp( TTimeIntervalMicroSeconds( MAKE_TINT64( 0, KRadioVolumeRampUpDelay ) ) ); |
573 iPlayerUtility->SetVolume( TunerVolumeForUiVolume( iSettings->EngineSettings().Volume() ) ); |
573 iPlayerUtility->SetVolume( TunerVolumeForUiVolume( iSettings->EngineSettings().Volume() ) ); |
574 |
574 |
575 iPlayerUtility->Mute( iSettings->EngineSettings().IsVolMuted() ); |
575 iPlayerUtility->Mute( iSettings->EngineSettings().IsVolMuted() ); |
576 iTunerUtility->SetSquelch( EFalse ); |
|
576 iTunerUtility->SetFrequency( iSettings->EngineSettings().TunedFrequency() ); |
577 iTunerUtility->SetFrequency( iSettings->EngineSettings().TunedFrequency() ); |
577 iFreqEventReason = RadioEngine::ERadioFrequencyEventReasonImplicit; |
578 iFreqEventReason = RadioEngine::ERadioFrequencyEventReasonImplicit; |
578 |
579 |
579 TRAP_IGNORE( iAudioRouter->SetAudioRouteL( |
580 TRAP_IGNORE( iAudioRouter->SetAudioRouteL( |
580 RadioEngine::TRadioAudioRoute( iSettings->EngineSettings().AudioRoute() ) ) ) |
581 RadioEngine::TRadioAudioRoute( iSettings->EngineSettings().AudioRoute() ) ) ) |