Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 10706

PCP3.2 - Need to inject sound from aplay while squeezelite runs

$
0
0
Hi,
I use PCP3.2 and a justboom amp HAT, it runs very fine.
I managed to get it working with both equalizer and mono re-mapping thanks to the PCP GUI and to a poster on this forum.
I really don't understand how ALSA works and it's been like that for ages.

I need now to inject sound directly from the OS, with something like aplay, on top of what squeezelite is playing. This comes in addition to the mono/equal setup.
I don't want to stop squeezelite to be able to play the sound, in fact I would like to change nothing at LMS level (volume, pause...) because the soundbite I need to inject is so short.
What I would like to do is fade out or reduce the audio volume for squeezelite, play the soundbite a bit louder on top of it, then return the squeezelite audio output to normal volume.

Is it possible? How?
Thanks in advance.
PS: asound.conf
Code:

# default - Generated by piCorePlayer
pcm.!default {
        type plug
        slave.pcm "hw:0,0"
}

#---ALSA EQ Below--------
ctl.equal {
        type equal;
        controls "/home/tc/.alsaequal.bin"
        library "/usr/local/lib/ladspa/caps.so"
}

pcm.plugequal {
        type equal;
        slave.pcm "plughw:1,0";
        controls "/home/tc/.alsaequal.bin"
        library "/usr/local/lib/ladspa/caps.so"
}

pcm.equal {
        type plug;
        slave.pcm plugequal;
# Mono downmix + eq
        ttable {
                0.1 1
                0.0 1
                1.0 1
                1.1 1
        }
}


Viewing all articles
Browse latest Browse all 10706

Trending Articles