Documentation ¶
Overview ¶
Package audio contains local Tast tests that exercise audio playback and recording on Chrome OS.
Index ¶
- func ALSAConformance(ctx context.Context, s *testing.State)
- func CheckingAudioFormats(ctx context.Context, s *testing.State)
- func CrasBench(ctx context.Context, s *testing.State)
- func CrasPerf(ctx context.Context, s *testing.State)
- func CrasPlay(ctx context.Context, s *testing.State)
- func CrasRecord(ctx context.Context, s *testing.State)
- func CrasRecordQuality(ctx context.Context, s *testing.State)
- func CyclicBench(ctx context.Context, s *testing.State)
- func DevicePlay(ctx context.Context, s *testing.State)
- func DeviceRecord(ctx context.Context, s *testing.State)
- func HeadphoneVolumeSlider(ctx context.Context, s *testing.State)
- func LocalAudioPlayback(ctx context.Context, s *testing.State)
- func Microphone(ctx context.Context, s *testing.State)
- func MicrophoneMuteKeyboardKey(ctx context.Context, s *testing.State)
- func PlayAndRecordAudio(ctx context.Context, s *testing.State)
- func SoundCardInit(ctx context.Context, s *testing.State)
- func UIInput(ctx context.Context, s *testing.State)
- func VolumeControl(ctx context.Context, s *testing.State)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadphoneVolumeSlider ¶
HeadphoneVolumeSlider verifies volume slider, mute/unmute works fine for audio playback in 3.5mm Jack in lockscreen.
func LocalAudioPlayback ¶
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 PlayAndRecordAudio ¶
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 ¶
SoundCardInit Verifies sound_card_init boot time calibration logic.
Types ¶
This section is empty.
Source Files ¶
- alsa_conformance.go
- checking_audio_formats.go
- cras_bench.go
- cras_perf.go
- cras_play.go
- cras_record.go
- cras_record_quality.go
- cyclic_bench.go
- device_play.go
- device_record.go
- doc.go
- headphone_volume_slider.go
- local_audio_playback.go
- microphone.go
- microphone_mute_keyboard_key.go
- play_and_record_audio.go
- sound_card_init.go
- ui_input.go
- volume_control.go
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. |