W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Re: Reviewing the Web Audio API (from webrtc)

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 19 Apr 2012 10:36:27 +1200
Message-ID: <CAOp6jLa5HVQGxTm7WzWyQpB9oRXErEbn7P9PyN1uhit4O+OE4A@mail.gmail.com>
To: public-audio@w3.org
On Wed, Apr 18, 2012 at 12:23 PM, Randell Jesup <randell-ietf@jesup.org>wrote:

> So it sounds like to modify audio in a MediaStream you'll need to:
>
> * Extract each track from a MediaStream
> * Turn each track into a source (might be combined with previous step)
> * Attach each source to a graph
> * Extract tracks from the destination of the graphs
> * Extract the video stream(s) from the MediaStream source
> * Combine all the tracks back into a new MediaStream
>

And one of the downsides of doing it this way is that you lose sync between
the audio and video streams. Usually not by much, but more for certain
kinds of processing. Given there's a way to not lose sync at all, why not
use it? Sorry to harp on this :-).

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Wednesday, 18 April 2012 22:36:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 18 April 2012 22:37:02 GMT