Add AudioListener features for spatial audio#2628
Conversation
|
Whoops,
|
|
OK, so now we now have a real-life example of an API that is totally harmless to use, is interoperable, but is nevertheless marked as deprecated without an interoperable alternative. Frustrating! Also, this was a specific kind of discouraged case that @atopal was concerned about. It does seem like the sort of thing that just ought to be Baseline, at least until Firefox ships the mainstream alternative. I think my inclination here is to make some sort of exception or editorial override, assuming these cases are rare, as they have been so far. But I'm not sure if they're rare yet. What do you think of marking this PR as a draft until we've dealt with more of the deprecated BCD keys? |
|
Sounds good to me. Let's leave this one off to the side for now, until we find other similar cases, if any. |
|
Thanks for calling this out! I'd also like to see if we have more of them. |
|
Discussed on the WebDX CG call now. From Daniel: There are some cases where we have new discouraged features. But the actual standard, non-discouraged, alternative isn't shipped (or at least not as available as what's discouraged). These things aren't being removed from browsers. |
Revisiting this after a while, I'm on the fence about whether to create a new discouraged feature. What We could mint a new feature called something like "Spatial web audio", which would be Limited Availability. In it, we'd use the BCD keys from the parent web-audio feature (which are hidden away from there anyway, because we use
And then we'd still need a way to deal with |
|
I implemented what I said in my previous comment and I'm actually quite happy with how it looks. @ddbeck what do you think? |
ddbeck
left a comment
There was a problem hiding this comment.
I like the way this looks! A few nitpicky suggestions below, but the overall shape of this is nice.
AudioListener feature for spatial audio
AudioListener feature for spatial audioAudioListener features for spatial audio
api.AudioListener.setOrientationandapi.AudioListener.setPositionare deprecated but are currently the only way to set an audio listener's orientation and position in Firefox. So there's no use creating a discouraged feature for this. At least not until https://bugzil.la/1283029 gets fixed and BCD gets updated.For now, why don't we put these keys under Web Audio. Anyway, the whole feature uses a
compute_fromfield which will hide any weirdness from these keys.