Closed
Bug 849230
Opened 12 years ago
Closed 12 years ago
Limit the range of sample rates according to the spec
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
(deleted),
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
We should limit the range of accepted sampling rates to 22050 through 96000.
Comment 1•12 years ago
|
||
If we want WebRTC to play nice with WebAudio, we should allow a samplerate of 8000Hz, since G711 (one of the two codecs supported) has a samplerate of 8000Hz.
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Paul Adenot (:padenot) from comment #1)
> If we want WebRTC to play nice with WebAudio, we should allow a samplerate
> of 8000Hz, since G711 (one of the two codecs supported) has a samplerate of
> 8000Hz.
Ah, very good point.
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #722845 -
Flags: review?(paul)
Comment 4•12 years ago
|
||
Comment on attachment 722845 [details] [diff] [review]
Patch (v1)
Review of attachment 722845 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #722845 -
Flags: review?(paul) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Why restricting the sampling rate only to 96kHz max?
It sounds quite arbitrary to me, and I can't see any hard technical limits to justify it.
But if you are serious in wanting to impose arbitrary limitations to web devs, please, make the spec support at least up to 192kHz sample rate.
Here's some evidences that there is need for it:
http://www.intel.com/content/www/us/en/chipsets/high-definition-audio.html
"Intel HD Audio hardware is capable of delivering the support and sound quality for up to eight channels at 192 kHz/32-bit quality"
http://en.wikipedia.org/wiki/BD-ROM#Audio
Specification of BD-ROM Primary audio streams:
For LPCM, Dolby TrueHD & DTS-HD Master Audio, max. channel: 6 @ 192 kHz.
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to comment #6)
> Why restricting the sampling rate only to 96kHz max?
> It sounds quite arbitrary to me, and I can't see any hard technical limits to
> justify it.
>
> But if you are serious in wanting to impose arbitrary limitations to web devs,
> please, make the spec support at least up to 192kHz sample rate.
>
> Here's some evidences that there is need for it:
> http://www.intel.com/content/www/us/en/chipsets/high-definition-audio.html
> "Intel HD Audio hardware is capable of delivering the support and sound quality
> for up to eight channels at 192 kHz/32-bit quality"
>
> http://en.wikipedia.org/wiki/BD-ROM#Audio
> Specification of BD-ROM Primary audio streams:
> For LPCM, Dolby TrueHD & DTS-HD Master Audio, max. channel: 6 @ 192 kHz.
Can you please comment on <https://www.w3.org/Bugs/Public/show_bug.cgi?id=21223>? I'm fine with changing this to whatever we end up with on the spec side.
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 9•12 years ago
|
||
Comment on attachment 722845 [details] [diff] [review]
Patch (v1)
Review of attachment 722845 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/webaudio/test/test_AudioBuffer.html
@@ +39,5 @@
> + context.createBuffer(2, 2048, 7999);
> + }, DOMException.DOM_SYNTAX_ERR);
> + expectException(function() {
> + context.createBuffer(2, 2048, 96001);
> + }, DOMException.DOM_SYNTAX_ERR);
I don't think you meant to pass DOMException.DOM_SYNTAX_ERR === undefined here.
Comment 10•12 years ago
|
||
I believe this is a mistake. Such limitation is out of the spec scope.
See:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21223#c6
Assignee | ||
Comment 11•12 years ago
|
||
(In reply to :Ms2ger from comment #9)
> Comment on attachment 722845 [details] [diff] [review]
> Patch (v1)
>
> Review of attachment 722845 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: content/media/webaudio/test/test_AudioBuffer.html
> @@ +39,5 @@
> > + context.createBuffer(2, 2048, 7999);
> > + }, DOMException.DOM_SYNTAX_ERR);
> > + expectException(function() {
> > + context.createBuffer(2, 2048, 96001);
> > + }, DOMException.DOM_SYNTAX_ERR);
>
> I don't think you meant to pass DOMException.DOM_SYNTAX_ERR === undefined
> here.
Follow-up pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/8fc27301f35c
Thanks for catching this!
Comment 12•12 years ago
|
||
Assignee | ||
Comment 13•11 years ago
|
||
Mass moving Web Audio bugs to the Web Audio component. Filter on duckityduck.
Component: Video/Audio → Web Audio
You need to log in
before you can comment on or make changes to this bug.
Description
•