Lines Matching refs:step
751 self.steps = config.step
760 for step in self.steps:
761 if step.audio_file and step.audio_file not in self.audio_tempfiles:
770 self.audio_tempfiles[step.audio_file] = audio_tempfile
774 stress_test_common.GetResourceContents(step.audio_file))
778 if step.audio_file_sample_rate <= 0:
779 step.audio_file_sample_rate = 16000
780 wavefile.setframerate(step.audio_file_sample_rate)
781 if step.audio_file_num_channels <= 0:
782 step.audio_file_num_channels = 1
783 wavefile.setnchannels(step.audio_file_num_channels)
784 if not step.audio_file_format:
786 elif step.audio_file_format == "s8":
788 elif step.audio_file_format == "s16":
790 elif step.audio_file_format == "s32":
794 "Unsupported wave file format for %s" % step.audio_file)
796 step.audio_file))
875 for step in self.steps:
876 if step.delay_before:
877 logging.info("Waiting for %.2f seconds", step.delay_before)
878 time.sleep(step.delay_before)
880 if step.audio_file:
881 logging.info("Playing %s", step.audio_file)
883 "Playing %s" % step.audio_file])
887 self.audio_tempfiles[step.audio_file].name,
891 winsound.PlaySound(self.audio_tempfiles[step.audio_file].name,
896 if step.command:
897 logging.info("Running command %s", step.command)
902 shlex.split(step.command % device.cmd_string_replacements),
907 if step.delay_after:
908 logging.info("Waiting for %.2f seconds", step.delay_after)
909 time.sleep(step.delay_after)