Home | History | Annotate | Download | only in audio_SeekAudioFeedback
      1 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = "Chromium OS Project"
      6 NAME = "audio_SeekAudioFeedback"
      7 PURPOSE = "Verifies audio output for seeking forward and back"
      8 CRITERIA = """
      9 This test will fail if audio file sound is not audible after seek.
     10 """
     11 ATTRIBUTES = "suite:audio"
     12 TIME = "SHORT"
     13 TEST_CATEGORY = "General"
     14 TEST_CLASS = "audio"
     15 TEST_TYPE = "client"
     16 DEPENDENCIES = 'audio_loopback_dongle'
     17 
     18 DOC = """
     19 Test that the sound from media files can be heard by recording from mic in
     20 by seeking forward and back
     21 """
     22 
     23 # Media formats to be tested.
     24 TEST_DURATION = 5
     25 TEST_FILE = 'audio_SeekAudioFeedbackaudio.mp3'
     26 
     27 constraints = ['%s_rms_value > 0.001' % TEST_FILE.replace('.', '_') ]
     28 
     29 job.run_test('audio_SeekAudioFeedback',
     30              test_file=TEST_FILE,
     31              test_duration=TEST_DURATION,
     32              constraints=constraints)
     33