Re: [Jack-Devel] play two different sources with different sample rates

PrevNext  Index
DateSat, 29 Oct 2011 11:47:23 -0400
From Paul Davis <[hidden] at linuxaudiosystems dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-Torichard lucassen [Jack-Devel] play two different sources with different sample rates
Follow-Uprichard lucassen Re: [Jack-Devel] play two different sources with different sample rates
On Sat, Oct 29, 2011 at 11:38 AM, richard lucassen
<[hidden]> wrote:
> Sorry for this noob question, I just entered the world of sound, but I
> use two sample rates with two different inputs:
>
> $ alsaplayer -d "alsa_pcm:playback_1,alsa_pcm:playback_2" 1>/dev/null
>
> To play flac files. To have good sound quality, I need to start
> jackd with "-d alsa -r 44100".
>
> $ cvlc http://dreambox1.utr.xaq.nl:31344/
>
> This is a stream from a satellite Dreambox. To have good sound quality,
> I need to start jackd with "-d alsa -r 48000" (or just "-d alsa" as
> 48000 is the default value)
>
> I wonder if it is possible to use these two sources without restarting
> jackd. I don't need to mix them BTW. Just play them independently.

JACK itself does not do any resampling, ever.

So you need to use a player that can. There are variety of players
with this capability. i believe that mplayer -ao jack can do this. All
gstreamer-based players (Rhythmbox, Totem and many others) can do
resampling (though they do it using a LOT of CPU power, alas.

--p
PrevNext  Index

1319903267.14219_0.ltw:2,a <CAFa_cKnc=gB8OE1mP4NmcpvzM9EysmuqHfj+QWR5xOqyZShnvw at mail dot gmail dot com>