Re: Sound cron job delayed while VLC running
On Fri, 8 Jun 2018 14:21:02 -0400 Greg Wooledge wrote: > On Fri, Jun 08, 2018 at 08:13:24PM +0200, Holger Nessen wrote: > > I'am not sure which sound backend you are using. > > As far as I can remember, ALSA didn't allow multiple processes to > > output sound at the same time. > > Depends on the hardware. If the hardware allows mixing natively, then > you can get mixing with vanilla ALSA. Otherwise you need userspace > mixing, previously done by esd, nowadays done by pulseaudio. Doesn't basic ALSA provide software mixing via the dmix plugin? https://wiki.debian.org/ALSA#Sharing_a_card_among_multiple_processes https://alsa.opensrc.org/Dmix Celejar
Re: Sound cron job delayed while VLC running
On Fri, Jun 08, 2018 at 08:13:24PM +0200, Holger Nessen wrote: > I'am not sure which sound backend you are using. > As far as I can remember, ALSA didn't allow multiple processes to > output sound at the same time. Depends on the hardware. If the hardware allows mixing natively, then you can get mixing with vanilla ALSA. Otherwise you need userspace mixing, previously done by esd, nowadays done by pulseaudio.
Re: Sound cron job delayed while VLC running
Hi, I'am not sure which sound backend you are using. As far as I can remember, ALSA didn't allow multiple processes to output sound at the same time. With other sound backends, e. g. PulseAudio this may change. However, I don't have any clue, why this problem arises just after the upgrade. Best Regards, Holger Am Fri, 8 Jun 2018 16:33:45 +0200 (CEST) schrieb Roger Price : > For nearly 20 years, I have had a cron job in which a dog (yes, it's > Biff) barks the hours. The lines in /etc/crontab are > > 0 0,12 * * * rprice /mnt/home/rprice/bark/bark.sh 12 > ... > 0 11,23 * * * rprice /mnt/home/rprice/bark/bark.sh 11 > > In the bark.sh script, the sound is produced by sox command > > /usr/bin/play -q hour12.au > > I have now migrated to Debian stretch but would still like to hear > Biff barking the hours. The cron job works well as long as VLC is > not running. But while VLC runs, the cron job waits. When VLC has > finished, I hear the barking. Is there some way of having the > barking while VLC plays? > > I can see nothing in VLC configuration file ~rprice/.config/vlc/vlcrc > which prevents others from accessing the sound card at the same time. > > Roger > >
Re: Sound cron job delayed while VLC running
On Fri, 8 Jun 2018 16:33:45 +0200 (CEST) Roger Price wrote: > For nearly 20 years, I have had a cron job in which a dog (yes, it's Biff) > barks > the hours. The lines in /etc/crontab are > > 0 0,12 * * * rprice /mnt/home/rprice/bark/bark.sh 12 > ... > 0 11,23 * * * rprice /mnt/home/rprice/bark/bark.sh 11 > > In the bark.sh script, the sound is produced by sox command > > /usr/bin/play -q hour12.au > > I have now migrated to Debian stretch but would still like to hear Biff > barking > the hours. The cron job works well as long as VLC is not running. But while > VLC runs, the cron job waits. When VLC has finished, I hear the barking. Is > there some way of having the barking while VLC plays? > > I can see nothing in VLC configuration file ~rprice/.config/vlc/vlcrc which > prevents others from accessing the sound card at the same time. Is sound mixing generally working on your machine? Try, e.g., the dmix test from here: https://alsa.opensrc.org/DmixPlugin Celejar
Sound cron job delayed while VLC running
For nearly 20 years, I have had a cron job in which a dog (yes, it's Biff) barks the hours. The lines in /etc/crontab are 0 0,12 * * * rprice /mnt/home/rprice/bark/bark.sh 12 ... 0 11,23 * * * rprice /mnt/home/rprice/bark/bark.sh 11 In the bark.sh script, the sound is produced by sox command /usr/bin/play -q hour12.au I have now migrated to Debian stretch but would still like to hear Biff barking the hours. The cron job works well as long as VLC is not running. But while VLC runs, the cron job waits. When VLC has finished, I hear the barking. Is there some way of having the barking while VLC plays? I can see nothing in VLC configuration file ~rprice/.config/vlc/vlcrc which prevents others from accessing the sound card at the same time. Roger