//BAT

// Testing Playback to EOF

[TestCase]
id 102
Title AudioPlayback.1 - Play AMR_WB_6.6kbps.awb
SoundFile c:\testing\data\awb\AMR_WB_6.6kbps.awb
Expected Duration 2 000 000
ErrorRange 1 000 000
[End_TestCase]

[TestCase]
id 102
Title AudioPlayback.2 - Play 10s_AMR_NB_mode_0.amr
SoundFile c:\testing\data\amr\10s_AMR_NB_mode_0.amr
Expected Duration 2 000 000
ErrorRange 1 000 000
[End_TestCase]

//**************************
//* Play and Stop (ID 103)
//**************************

[TestCase]
id 103
Title AudioPlayback.5 - PlayStop 10s_smooth.mp3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
Delay 1000000
[End_TestCase]

[TestCase]
id 103
Title AudioPlayback.6 - PlayStop 3GP_AAC+_8kbps_16khz_mono.3gp
SoundFile c:\testing\data\3gpp\3GP_AAC+_8kbps_16khz_mono.3gp
SoundFile c:\testing\data\3gpp\3GP_AAC+_8kbps_16khz_mono.3gp
Delay 1000000
[End_TestCase]


//**************************
//* Play Pause Play (ID 108)
//**************************

[TestCase]
id 108
Title AudioPlayback.8 - PlayPausePlay MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
PauseDelay 5000000
PlayDelay 10000000
ErrorRange 2 000 000
[End_TestCase]

[TestCase]
id 108
Title AudioPlayback.9 - PlayPausePlay 10s_MID_Generic.mid
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
PauseDelay 5000000
PlayDelay 10000000
ErrorRange 2 000 000
[End_TestCase]

[TestCase]
id 108
Title AudioPlayback.7 - PlayPausePlay 10s_AAC_LC_320kbps_48khz_stereo.aac
SoundFile c:\testing\data\aac\10s_AAC_LC_320kbps_48khz_stereo.aac
PauseDelay 5000000
PlayDelay 10000000
ErrorRange 5 000 000
[End_TestCase]

//**************************
//* Set Position - Play (ID 109)
//**************************

[TestCase]
id 109
Title AudioPlayback.10 - SetPosition_Play 10s_AMR_WB_15.85kbps.awb
SoundFile c:\testing\data\awb\10s_AMR_WB_15.85kbps.awb
Position 5 000 000
ErrorRange 1 000 000
[End_TestCase]


[TestCase]
id 109
Title AudioPlayback.11 - SetPosition_Play MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
Position 5 000 000
ErrorRange 3 000 000
[End_TestCase]

[TestCase]
id 109
Title AudioPlayback.12 - SetPosition_Play 10s_MID_Generic.mid
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
Position 5 000 000
ErrorRange 2 000 000
[End_TestCase]

[TestCase]
id 124
Title AudioPlayback.82 - SetPosition_Play 10s_AMR_NB_mode_0.amr
SoundFile c:\testing\data\amr\10s_AMR_NB_mode_0.amr
Position 5 000 000
ErrorRange 1 000 000
[End_TestCase]

//**************************
//* Play - Get Position (ID 110)
//**************************
// Delay is the setting position, meaning every delay value, the get position is called. 
// This info be seen on the log file.

[TestCase]
id 110
Title AudioPlayback.13 - GetPosition_10s_AMR_WB_15.85kbps.awb
SoundFile c:\testing\data\awb\10s_AMR_WB_15.85kbps.awb
Delay 1000000
[End_TestCase]

[TestCase]
id 110
Title AudioPlayback.14 - GetPosition_Play MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
Delay 1000000
[End_TestCase]

[TestCase]
id 110
Title AudioPlayback.15 - GetPosition_Play 10s_MID_Generic.mid
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
Delay 1000000
[End_TestCase]

[TestCase]
id 125
Title AudioPlayback.83 - GetPosition_Play MP4_24kbps_16khz_mono.mp4
SoundFile c:\testing\data\mp4\MP4_24kbps_16khz_mono.mp4
Delay 1000000
[End_TestCase]

//**************************
//* Play - Get Duration (ID 111)
//**************************

[TestCase]
id 111
Title AudioPlayback.16 - GetDuration 10s_AMR_WB_23.85kbps_Generic.awb
SoundFile c:\testing\data\awb\10s_AMR_WB_23.85kbps_Generic.awb
Delay 1000000
[End_TestCase]

[TestCase]
id 111
Title AudioPlayback.17 - GetDuration MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
Delay 1000000
[End_TestCase]

[TestCase]
id 111
Title AudioPlayback.18 - GetDuration 10s_MID_Generic.mid
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
Delay 1000000
[End_TestCase]

[TestCase]
id 126
Title AudioPlayback.84 - GetDuration 10s_AAC_LC_320kbps_48khz_stereo.aac
SoundFile c:\testing\data\aac\10s_AAC_LC_320kbps_48khz_stereo.aac
Delay 1000000
[End_TestCase]

//**************************
//* Play - Volume Max and Medium (ID 112)
//**************************

[TestCase]
id 112
Title AudioPlayback.19 - SettingVolume 10s_AMR_WB_23.85kbps_Generic.awb
SoundFile c:\testing\data\awb\10s_AMR_WB_23.85kbps_Generic.awb
[End_TestCase]


[TestCase]
id 112
Title AudioPlayback.20 - SettingVolume MP3 10s_smooth.mp3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
[End_TestCase]

[TestCase]
id 112
Title AudioPlayback.21 - SettingVolume 10s_MID_Generic.mid
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
[End_TestCase]

//**************************
//* Play - Volume Ramping (ID 113)
//**************************

[TestCase]
id 113
Title AudioPlayback.22 - VolumeRamping 10s_AMR_WB_23.85kbps_Generic.awb
SoundFile c:\testing\data\awb\10s_AMR_WB_23.85kbps_Generic.awb
RampDuration 3 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 113
Title AudioPlayback.23 - VolumeRamping MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
RampDuration 5 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 113
Title AudioPlayback.24 - VolumeRamping 10s_RMF_MID.rmf
SoundFile c:\testing\data\mid\10s_RMF_MID.rmf
RampDuration 3 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 123
Title AudioPlayback.81 - VolumeRamping 10s_AMR_NB_mode_0.amr
SoundFile c:\testing\data\amr\10s_AMR_NB_mode_0.amr
RampDuration 3 000 000
Delay 2000000
[End_TestCase]

//**************************
//* Play - Set Playback Window (ID 115)
//**************************

[TestCase]
id 115
Title AudioPlayback.25 - SetPlaybackWindow AMR-WB-23kb.awb
SoundFile c:\testing\data\awb\AMR-WB-23kb.awb
StartPosition 3 000 000
EndPosition   7 000 000
ErrorRange 3 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 115
Title AudioPlayback.26 - SetPlaybackWindow MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
StartPosition 10 000 000
EndPosition   20 000 000
ErrorRange 2 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 115
Title AudioPlayback.27 - SetPlaybackWindow 30s_MID_Generic.mid
SoundFile c:\testing\data\mid\30s_MID_Generic.mid
StartPosition 10 000 000
EndPosition   20 000 000
ErrorRange 3 000 000
Delay 1000000
[End_TestCase]

//**************************
//* Play - Delete Playback Window (ID 116)
//**************************

[TestCase]
id 116
Title AudioPlayback.28 - DeletePlaybackWindow AMR-WB-23kb.awb
SoundFile c:\testing\data\awb\AMR-WB-23kb.awb
StartPosition 3 000 000
EndPosition   7 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 116
Title AudioPlayback.29 - DeletePlaybackWindow MP3 30s_batendo_a_porta.mp3
SoundFile c:\testing\data\mp3\30s_batendo_a_porta.mp3
StartPosition 10 000 000
EndPosition   20 000 000
Delay 1000000
[End_TestCase]

[TestCase]
id 116
Title AudioPlayback.30 - DeletePlaybackWindow 30s_MID_Generic.mid
SoundFile c:\testing\data\mid\30s_MID_Generic.mid
StartPosition 10 000 000
EndPosition   20 000 000
Delay 1000000
[End_TestCase]


//**************************
//* Play - Repeat (ID 117)
//**************************

[TestCase]
id 117
Title AudioPlayback.31 - Repeat 10s_smooth.mp3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

//**************************
//* Play - Balance (ID 118)
//**************************

[TestCase]
id 118
Title AudioPlayback.32 - Balance 10s_smooth.mp3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
Balance 90
[End_TestCase]

//**************************
//* Test MetaData using audio player
//**************************

[TestCase]
id 114
Title AudioPlayback.33 - DisplayFields test3gp.3gp
SoundFile c:\testing\data\metadata\test3gp.3gp
DontPlayAudioClip
[End_TestCase]

[TestCase]
id 114
Title AudioPlayback.34 - DisplayFields testmp4.mp4
SoundFile c:\testing\data\metadata\testmp4.mp4
DontPlayAudioClip
[End_TestCase]

[TestCase]
id 114
Title AudioPlayback.36 - DisplayFields DownUnder_remix.aac
SoundFile c:\testing\data\metadata\DownUnder_remix.aac
DontPlayAudioClip
[End_TestCase]

[TestCase]
id 114
Title AudioPlayback.37 - DisplayFields testm4a.m4a
SoundFile c:\testing\data\metadata\testm4a.m4a
DontPlayAudioClip
[End_TestCase]

[TestCase]
id 133
Title AudioPlayback.38 - MetaDataCount test3gp.3gp
SoundFile c:\testing\data\metadata\test3gp.3gp
EntryCount 4
DontPlayAudioClip
[End_TestCase]

[TestCase]
id 133
Title AudioPlayback.39 - MetaDataCount testmp4.mp4
SoundFile c:\testing\data\metadata\testmp4.mp4
EntryCount 4
DontPlayAudioClip
[End_TestCase]

//**************************************************
// Normal Loop play of all audio formats
//**************************************************

[TestCase]
id 117
Title AudioPlayback.140 - Repeat 3GP
SoundFile c:\testing\data\3gpp\3GP_AAC+_8kbps_16khz_mono.3gp
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.141 - Repeat AAC
SoundFile c:\testing\data\aac\10s_AAC_LC_320kbps_48khz_stereo.aac
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.142 - Repeat AMR-NB
SoundFile c:\testing\data\amr\10s_AMR_NB_mode_0.amr
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.143 - Repeat AMR-WB
SoundFile c:\testing\data\awb\10s_AMR_WB_15.85kbps.awb
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.144 - Repeat MIDI
SoundFile c:\testing\data\mid\10s_MID_Generic.mid
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.145 - Repeat MP3
SoundFile c:\testing\data\mp3\10s_smooth.mp3
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.146 - Repeat MP4
SoundFile c:\testing\data\mp4\MP4_24kbps_16khz_mono.mp4
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]

[TestCase]
id 117
Title AudioPlayback.147 - Repeat WAV
SoundFile c:\testing\data\wav\recordwav10s.wav
RepeatTimes 3
SilenceDuration 3 000 000
[End_TestCase]