device

package
v0.0.0-...-683b059 Latest Latest
Warning

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

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

Documentation

Overview

Package device contains device-related test logic shared by audio tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRunningDevice

func CheckRunningDevice(ctx context.Context, playback, capture bool) error

CheckRunningDevice checks the running output/input device by parsing asound status. A device may not be opened immediately so it will repeat the query until the expected running device(s) are found.

func TestALSACommand

func TestALSACommand(ctx context.Context, s *testing.State, name string)

TestALSACommand tests ALSA command recognizes devices.

func TestDeviceFiles

func TestDeviceFiles(ctx context.Context, s *testing.State, pattern string)

TestDeviceFiles tests device files matching pattern, a regular expression that must match a device node name (e.g. "^pcm.*$"), exist in /dev/snd with correct permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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