Re: RFC on sound codec refactoring

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

 




----- Original Message -----
> Attached (sorry :-/) are two patches that express my current plan for
> supporting Opus (and other codecs as well).
> 
> Essentially, I abstract out the celt functionality into a spice-common
> shared library; snd_codec.c.  I then implement the server and client
> using that logic.
> 
> The patches attached seem to Work For Me [1].  The goal was to use the
> new abstraction without changing functionality.  They do have the side
> effect of making celt optional, which will make the Debian guys happy.
> 
> I know of two flaws, currently.
> 
> First, the computation of the frame size is unsatisfying.  Opus is going
> to require a different frequency, hence a different frame size.  I've
> started abstracting it, but I want to dig more into Opus before I
> finalize an approach.
> 
> Second, the current client does not record correctly in celt mode.  I
> get a stuttered recording when I use that.  The gtk code works fine.  In
> my testing, this is true both with and without this patch set.  But it's
> still an unsatisfying result :-/.

You mean it's stuttering with the old spicec client but not with spice-gtk?

Feel free to not touch spicec, it's really no longer maintained - but feel free to fix it too :). in fact I would prefer if you could verify your "common" code with spice-gtk, but I understand if you prefer to let someone else do it ;)

> I would appreciate comments and feedback, particularly if there is
> anything that seems obviously wrong to others.

I like this approach (I am just worried about the opus integration and dealing with various compiled in/out versions of server and client)

> If this approach seems viable, I'll work on adding Opus support, and
> then also revise the gtk implementation to use the new code.

Iirc, Christophe also did some work on Opus support, but he got stucked because of necessary resampler. I don't know the details, but I am sure he will reply.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]