Compare commits
1 commit
dev
...
pulseaudio
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d70c7bfc6 |
1 changed files with 8 additions and 5 deletions
|
|
@ -23,14 +23,17 @@ def audio_test_linux() -> None:
|
||||||
LOG.info('Audio Test')
|
LOG.info('Audio Test')
|
||||||
|
|
||||||
# Set volume
|
# Set volume
|
||||||
for source in ('Master', 'PCM'):
|
commands = (
|
||||||
cmd = f'amixer -q set "{source}" 80% unmute'.split()
|
'pactl set-sink-mute @DEFAULT_SINK@ off',
|
||||||
run_program(cmd, check=False)
|
'pactl set-sink-volume @DEFAULT_SINK@ 80%',
|
||||||
|
)
|
||||||
|
for cmd in commands:
|
||||||
|
run_program(cmd.split(), check=False)
|
||||||
|
|
||||||
# Run audio tests
|
# Run audio tests
|
||||||
for mode in ('pink', 'wav'):
|
for mode in ('pink', 'wav'):
|
||||||
cmd = f'speaker-test -c 2 -l 1 -t {mode}'.split()
|
cmd = f'speaker-test -c 2 -l 1 -t {mode}'
|
||||||
run_program(cmd, check=False, pipe=False)
|
run_program(cmd.split(), check=False, pipe=False)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue