Problem setting up a service that uses audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you are running a systemd service that needs pulseaudio up and running,
then you need to do two things:

set up pulseaudio as a systemd service
declare a dependency on your pulseaudio systemd service

At least some of the documentation for this can be found at :

https://possiblelossofprecision.net/?p=1956

Cheers,
Toby Haynes

On Thu, 30 Mar 2017 at 15:51 Stéphane Boucher <sboucher at d-box.com> wrote:

> 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 <(450)%20442-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.
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170330/57d5031b/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux