W3C home > Mailing lists > Public > public-webevents@w3.org > October to December 2011

Re: Draft Updated Charter adding Mouse Lock and Gamepad

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 6 Oct 2011 13:11:41 +1300
Message-ID: <CAOp6jLbEyCEyNgjbTvjfeBTEx8Zu1H7tF=9ycEjM3tRwDXeXkg@mail.gmail.com>
To: Chris Wilson <cwilso@google.com>
Cc: Olli@pettay.fi, public-webevents@w3.org
On Thu, Oct 6, 2011 at 12:59 PM, Chris Wilson <cwilso@google.com> wrote:

> The short version is "I want to be able to easily write code so I can do
> noteOn(channel, key #, velocity) and handleNoteOn(channel, key #,
> velocity)."

> Do ProcessedMediaStreams need to be in a worker?

The ProcessedMediaStream object is on the main thread. The processing
happens in a Worker.

We could also offer a processing API that happens on the main thread. You'll
be subject to main-thread latency then, and liable to glitch.

We will probably offer a main-thread API to generate a stream by injecting
data periodically (initially audio samples, but could be other kinds of data
too). That would be a lower-latency way to generate a stream from the main
thread (lower latency than posting the data to a Worker which is driving a
zero-input ProcessedMediaStream), but would also be liable to glitch if
you're not buffering up data very far. Doing real-time things on the main
thread is just risky :-).

"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
Received on Thursday, 6 October 2011 01:11:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:54 UTC