Skip to content
Snippets Groups Projects
Commit c0ed0422 authored by David Trattnig's avatar David Trattnig
Browse files

refact(Make): extract audio targets

parent 2c8aab10
No related branches found
No related tags found
No related merge requests found
Pipeline #2628 passed
-include build/base.Makefile -include build/base.Makefile
-include build/docker.Makefile -include build/docker.Makefile
-include build/audio.Makefile
help:: help::
...@@ -15,13 +16,7 @@ help:: ...@@ -15,13 +16,7 @@ help::
@echo " run.debug - start app in debug mode" @echo " run.debug - start app in debug mode"
@echo " docker.init - create docker volume for engine socket" @echo " docker.init - create docker volume for engine socket"
$(call docker_help) $(call docker_help)
@echo " audio.pa.start - start pulseaudio server" $(call audio_help)
@echo " audio.pa.stop - stop pulseaudio server"
@echo " audio.pa.status - status of pulseaudio server"
@echo " audio.pa.ctrl - ui for pulseaudio server"
@echo " audio.alsa.cards - list alsa cards"
@echo " audio.alsa.init - create initial config file"
@echo " audio.alsa.test - test configured audio device"
# Settings # Settings
...@@ -86,27 +81,3 @@ run.debug:: ...@@ -86,27 +81,3 @@ run.debug::
docker.init:: docker.init::
@echo "Creating Docker Volume for Engine Socket at '$(AURA_ENGINE_CORE_SOCKET)'" @echo "Creating Docker Volume for Engine Socket at '$(AURA_ENGINE_CORE_SOCKET)'"
docker volume create aura_engine_socket docker volume create aura_engine_socket
audio.pa.start::
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service
audio.pa.stop::
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
audio.pa.status::
pactl list
audio.pa.ctrl::
pavucontrol
audio.alsa.cards::
cat /proc/asound/cards
audio.alsa.init::
cp -p config/sample.asoundrc config/.asoundrc
ln -s ${CURDIR}/config/.asoundrc ~/.asoundrc
audio.alsa.test::
speaker-test -D aura_engine
\ No newline at end of file
# Audio targets for AURA Makefiles
# Help
define audio_help
@echo " audio.pa.start - start pulseaudio server"
@echo " audio.pa.stop - stop pulseaudio server"
@echo " audio.pa.status - status of pulseaudio server"
@echo " audio.pa.ctrl - ui for pulseaudio server"
@echo " audio.alsa.cards - list alsa cards"
@echo " audio.alsa.init - create initial config file"
@echo " audio.alsa.test - test configured audio device"
endef
# Targets
audio.pa.start::
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service
audio.pa.stop::
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
audio.pa.status::
pactl list
audio.pa.ctrl::
pavucontrol
audio.alsa.cards::
cat /proc/asound/cards
audio.alsa.init::
cp -p config/sample.asoundrc config/.asoundrc
ln -s ${CURDIR}/config/.asoundrc ~/.asoundrc
audio.alsa.test::
speaker-test -D aura_engine
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment