[pulseaudio-discuss] Problem setting up a service that uses audio

Stéphane Boucher sboucher at d-box.com
Thu Mar 30 19:35:54 UTC 2017


Setup:
Ubuntu Mate 16.04.1
Application to run as a systemd service.  It uses PortAudio, which uses alsa… which uses pulse audio due to plugin.

Due to needing timestamps, I explicitly what to use hw:1,0 and bypass pulseaudio.  However, it seems that pulseaudio is still required for initialisation.

Starting the application as a service (requiring sound.target) does not work.  Because no pulseaudio is started prior to login.

I’m at a loss as to how to cleanly do things.

I see the benefits of pulseaudio, but in my present case, I need to bypass it somehow, and have the service application able to have a properly initialised alsa & hw:1,0.

I’ve tried pasuspender, but if pulseaudio is not running, pasuspender isn’t happy.

STÉPHANE BOUCHER
Consultant software

D-BOX Technologies Inc. | A. 2172 de la Province, Longueuil, QC J4G 1R7 CANADA | T. 450-442-3003 | W. d-box.com<http://www.d-box.com>


AVIS : Ce courriel contient des renseignements confidentiels. Si vous n'êtes pas le véritable destinataire, la diffusion ou l'usage de ce courriel, des renseignements qu'il contient ou des documents qui lui sont joints pourrait être illégal. Il est donc strictement interdit de les diffuser ou de les utiliser. Si vous avez reçu ce courriel par erreur, nous vous saurions gré d’en aviser l'expéditeur immédiatement et de le supprimer sans le lire, l'imprimer, le sauvegarder ou le diffuser. Nous vous remercions de votre aimable collaboration.

NOTICE: This e-mail contains confidential information. If you are not the intended recipient, any disclosure or other use of this e-mail or the information contained herein or attached hereto may be unlawful and is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete this e-mail without reading, printing, copying or forwarding it to anyone. Thank you for your kind cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170330/7b94050a/attachment-0001.html>


More information about the pulseaudio-discuss mailing list