[Test]
title 21.1 RadioItf Start Radio
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]  

[Test]
title 21.2 RadioItf Set Freq 106.0 MHz
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  


ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 106000000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.3 RadioItf Get Freq 
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  


ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 106000000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

ALImpl al_radioitf_GetFrequency 106000000

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.4 RadioItf Set Freq Range
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  


ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
ALImpl al_radioitf_SetFreqRange 1 // EFmRangeJapan
wait Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED


ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.5 RadioItf Get Freq Range
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
ALImpl al_radioitf_SetFreqRange 1 // EFmRangeJapan
wait Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED

ALImpl al_radioitf_GetFreqRange 1 // EFmRangeJapan

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.6 RadioItf Get FR Properties 
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  


ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
ALImpl al_radioitf_SetFreqRange 0 // EFmRangeEuroAmerica
wait Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_RANGE_CHANGED

ALImpl al_radioitf_GetFreqRangeProperties 0 87500000 108000000 20 // range expected: min freq, max freq, freq interval

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.7 RadioItf Is Freq Range Supported
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  


ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_radioitf_IsFreqRangeSupported 1

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.8 RadioItf Set Squelch
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

allownextresult XA_RESULT_FEATURE_UNSUPPORTED
ALImpl al_radioitf_SetSquelch 1

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.9 RadioItf Get Squelch
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

allownextresult XA_RESULT_FEATURE_UNSUPPORTED
ALImpl al_radioitf_GetSquelch 1

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.10 RadioItfSetStereoModeMONO
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

ALImpl al_radioitf_SetStereoMode 0
ALImpl al_radioitf_GetStereoMode 0

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.11 RadioItf SetStereoModeSTEREO
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

ALImpl al_radioitf_SetStereoMode 1
ALImpl al_radioitf_GetStereoMode 1

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.12 RadioItf SetStereoModeAUTO
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

ALImpl al_radioitf_SetStereoMode 2
ALImpl al_radioitf_GetStereoMode 2

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 
[Test]
title 21.13 RadioItf Get Signal Strength
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

ALImpl al_radioitf_GetSignalStrength

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.14 RadioItf Seek
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 103700000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 106000000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 090900000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 096100000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_SEEK_COMPLETED
ALImpl al_radioitf_Seek 1
wait Event_XA_RADIO_EVENT_SEEK_COMPLETED
release Event_XA_RADIO_EVENT_SEEK_COMPLETED


ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.15 RadioItf Stop Seeking
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 103700000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 106000000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 090900000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

request Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
ALImpl al_radioitf_SetFrequency 096100000
wait Event_XA_RADIO_EVENT_FREQUENCY_CHANGED
release Event_XA_RADIO_EVENT_FREQUENCY_CHANGED

ALImpl al_radioitf_Seek 1
ALImpl al_radioitf_StopSeeking

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 21.16 RadioItf Cancel Set Freq
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1

ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_radioitf_CancelSetFrequency

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]  

[Test]
title 21.17 RadioItf Set Volume
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 2 XA_IID_NOKIALINEARVOLUME XA_IID_NOKIAVOLUMEEXT

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIAVOLUMEEXT
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIALINEARVOLUME
ALImpl al_nokiavolumeextitf_RegisterVolumeCallback
ALImpl al_nokialinearvolumeitf_RegisterVolumeCallback

ALImpl al_nokialinearvolumeitf_SetGetVolumeLevel 20

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.18 RadioItf Get Step Count
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 2 XA_IID_NOKIALINEARVOLUME XA_IID_NOKIAVOLUMEEXT

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIAVOLUMEEXT
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIALINEARVOLUME
ALImpl al_nokiavolumeextitf_RegisterVolumeCallback
ALImpl al_nokialinearvolumeitf_RegisterVolumeCallback

ALImpl al_nokialinearvolumeitf_GetStepCount

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.19 RadioItf SetMute On
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 2 XA_IID_NOKIALINEARVOLUME XA_IID_NOKIAVOLUMEEXT

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIAVOLUMEEXT
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIALINEARVOLUME
ALImpl al_nokiavolumeextitf_RegisterVolumeCallback
ALImpl al_nokialinearvolumeitf_RegisterVolumeCallback

ALImpl al_nokiavolumeextitf_SetMute 1

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.20 RadioItf SetMute Off
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 2 XA_IID_NOKIALINEARVOLUME XA_IID_NOKIAVOLUMEEXT

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIAVOLUMEEXT
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_NOKIALINEARVOLUME
ALImpl al_nokiavolumeextitf_RegisterVolumeCallback
ALImpl al_nokialinearvolumeitf_RegisterVolumeCallback

ALImpl al_nokiavolumeextitf_SetMute 0

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest] 

[Test]
title 21.21 RadioItf Stop Radio
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_engitf_CreateRadioDevice 0
ALImpl al_objitf_Realize MO_RADIO XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_RADIO XA_IID_RADIO
ALImpl al_radioitf_RegisterRadioCallback  

ALImpl al_SetDataLocator 3 5 0 1
ALImpl al_SetDataSource 3 0 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0 

ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 4 XA_IID_PLAY
ALImpl al_playitf_RegisterCallback

request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING

request Event_XA_PLAYEVENT_HEADSTALLED
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
wait Event_XA_PLAYEVENT_HEADSTALLED
release Event_XA_PLAYEVENT_HEADSTALLED

ALImpl al_objitf_Destroy MO_RADIO
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]        