Re: Attaining sync with a multi output without using lsdspa

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

 



On Sun, Mar 8, 2015 at 8:59 PM, Clemens Ladisch <cladisch@xxxxxxxxxxxxxx> wrote:
> Daniel Smedegaard Buus wrote:
>> I'd like to add a small delay to the 44.1 kHz output, and I've seen
>> some examples of introducing delays to a virtual device by using
>> lsdspa. However, according to LSDSPA docs, all processing is done in
>> 32 bits, and I would really prefer to avoid any format conversion...
>
> Why?  Conversion to 32 bits and back should be lossless.
>

Is it though? I haven't yet found specific details on what
intermediate format is used ... All I know so far is "32 bit". Could
be floating-point, and I don't know if there's any sample rate
conversion going on. Although that would be odd.

AFAICT though, what I'm trying to do isn't possible without going down
that route. If I want 44.1 and 48 kHz simultaneously, I can't use
dmix. If I want to control the buffers I have to use dmix :/

There are a couple of things that confuse me, though; the docs state
that I should have buffer_time and period_time fields on a slave, but
I don't. It also states that I should be able to define rate_converter
on a regular pcm dev, but when I do, I get a freaky error that the
converter "[funky chars]" couldn't be found. I can set it as the
default, though, which is fine for my setup.

Biggest problems right now are buffer underruns in general and the
inability to use differing sample rates while having control over
buffers... I have to do some extra testing about the underruns,
because I think they might be a shairplay issue — I hope they are,
because when it gets down to it, I can live with the sync problem :)

So tired, gotta sleep :) But it's fun, though, I'm learning a lot. I
used to think ALSA was some old-school deprecated buggy stuff, but
it's actually supremely awesome!

Thank your for your reply, Clemens :)

Daniel

>
> Regards,
> Clemens

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user





[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux