[LAU] setting fluidsynth as a service in debian/systemd
Federico Bruni
fede at inventati.org
Sat Oct 4 08:42:48 UTC 2014
Il giorno ven 3 ott 2014 alle 19:45, Tito Latini
<tito.01beta at gmail.com> ha scritto:
>
> I don't use systemd so I cannot test it, however the file used by
> archlinux is
>
> https://projects.archlinux.org/svntogit/packages.git/tree/trunk/fluidsynth.systemd?h=packages/fluidsynth
>
> If the rule "After=sound.target" implies "start fluidsynth after the
> start of the audio server", it should work.
>
> If you want to use a config file for the environment variables,
> a template/example is
>
> https://projects.archlinux.org/svntogit/packages.git/tree/trunk/fluidsynth.conf?h=packages/fluidsynth
>
> so `-a jack' if you use jack and `-m jack' if you use jack midi, etc.
>
> fluidsynth -a help
> fluidsynth -m help
>
>> Requested a period size of 64, got 940 instead
>> [...]
>> Requested 16 periods, got 8 instead
>
> Probably the correct parameters with `-a alsa' (no jack,
> no pulseaudio, etc) in this case are
>
> fluidsynth -is -a alsa -r 48000 -z 1024 -c 8
>
> because I presume 940 is "1024 * 44100 / 48000".
Thanks, now systemd service is starting correctly, but something is
wrong with fluidsynth command because I cannot hear any sound. Maybe
some ALSA/Pulseaudio conflict?
As you can see here:
# systemctl status -l fluidsynth.service
● fluidsynth.service - FluidSynth Daemon
Loaded: loaded (/etc/systemd/system/fluidsynth.service; disabled)
Active: active (running) since sab 2014-10-04 10:38:02 CEST; 2s ago
Main PID: 7768 (fluidsynth)
CGroup: /system.slice/fluidsynth.service
└─7768 /usr/bin/fluidsynth -is -a alsa -m alsa_seq -r
48000 -z 1024 -c 8 -p 7345
the command is:
fluidsynth -is -a alsa -m alsa_seq -r 48000 -z 1024 -c 8 -p 7345
I'm using PulseAudio but I've added these lines to ~/.asoundrc:
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
I want to specify fluidsynth port so I don't have to select it each
time I start an application (Frescobaldi).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20141004/d7c3c592/attachment.html>
More information about the Linux-audio-user
mailing list