audio

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 39 Imported by: 0

Documentation

Overview

Package audio contains local Tast tests that exercise audio playback and recording on Chrome OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ALSAConformance

func ALSAConformance(ctx context.Context, s *testing.State)

func CheckingAudioFormats

func CheckingAudioFormats(ctx context.Context, s *testing.State)

func CrasBench

func CrasBench(ctx context.Context, s *testing.State)

func CrasPerf

func CrasPerf(ctx context.Context, s *testing.State)

func CrasPlay

func CrasPlay(ctx context.Context, s *testing.State)

func CrasRecord

func CrasRecord(ctx context.Context, s *testing.State)

func CrasRecordQuality

func CrasRecordQuality(ctx context.Context, s *testing.State)

func CyclicBench

func CyclicBench(ctx context.Context, s *testing.State)

func DevicePlay

func DevicePlay(ctx context.Context, s *testing.State)

func DeviceRecord

func DeviceRecord(ctx context.Context, s *testing.State)

func HeadphoneVolumeSlider

func HeadphoneVolumeSlider(ctx context.Context, s *testing.State)

HeadphoneVolumeSlider verifies volume slider, mute/unmute works fine for audio playback in 3.5mm Jack in lockscreen.

func LocalAudioPlayback

func LocalAudioPlayback(ctx context.Context, s *testing.State)

LocalAudioPlayback generates audio file and plays it through default audio player. Switching nodes via UI interactions is the recommended way, instead of using cras.SetActiveNode() method, as UI will always send the preference input/output devices to CRAS. Calling cras.SetActiveNode() changes the active devices for a moment, but they soon are reverted by UI. See (b/191602192) for details.

func Microphone

func Microphone(ctx context.Context, s *testing.State)

func MicrophoneMuteKeyboardKey

func MicrophoneMuteKeyboardKey(ctx context.Context, s *testing.State)

func PlayAndRecordAudio

func PlayAndRecordAudio(ctx context.Context, s *testing.State)

PlayAndRecordAudio generates audio file, plays it and records it simultaneously. Then plays the recorded audio and verify if it routes through expected audio node.

func SoundCardInit

func SoundCardInit(ctx context.Context, s *testing.State)

SoundCardInit Verifies sound_card_init boot time calibration logic.

func UIInput

func UIInput(ctx context.Context, s *testing.State)

func VolumeControl

func VolumeControl(ctx context.Context, s *testing.State)

VolumeControl will increase/decrease volume using keyboard keys.

Types

This section is empty.

Directories

Path Synopsis
Package audionode provides the control of audionode settings from cras.
Package audionode provides the control of audionode settings from cras.
Package device contains device-related test logic shared by audio tests.
Package device contains device-related test logic shared by audio tests.
Package soundcardinit contains local Tast tests that verifies sound_card_init runs correctly on different device models.
Package soundcardinit contains local Tast tests that verifies sound_card_init runs correctly on different device models.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL