Changeset 267151 in webkit


Ignore:
Timestamp:
Sep 16, 2020 10:06:49 AM (4 years ago)
Author:
Chris Dumez
Message:

OfflineAudioContext should support up to 32 channels
https://bugs.webkit.org/show_bug.cgi?id=216587

Reviewed by Darin Adler.

Source/WebCore:

OfflineAudioContext should support up to 32 channels. It previously had
an artificial limit of 10.

No new tests, updated existing test.

  • Modules/webaudio/OfflineAudioContext.cpp:

(WebCore::OfflineAudioContext::create):

LayoutTests:

Update test that is now passing.

  • webaudio/dom-exceptions-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267147 r267151  
     12020-09-16  Chris Dumez  <cdumez@apple.com>
     2
     3        OfflineAudioContext should support up to 32 channels
     4        https://bugs.webkit.org/show_bug.cgi?id=216587
     5
     6        Reviewed by Darin Adler.
     7
     8        Update test that is now passing.
     9
     10        * webaudio/dom-exceptions-expected.txt:
     11
    1122020-09-16  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/LayoutTests/webaudio/dom-exceptions-expected.txt

    r267147 r267151  
    134134PASS < [biquad] All assertions passed. (total 4 assertions)
    135135PASS > [offline-audio-context] supports 32 channels
    136 FAIL X new OfflineAudioContext(32, 100, context.sampleRate) incorrectly threw SyntaxError: "Number of channels is not in range". assert_true: expected true got false
    137 FAIL < [offline-audio-context] 1 out of 1 assertions were failed. assert_true: expected true got false
     136PASS   new OfflineAudioContext(32, 100, context.sampleRate) did not throw an exception.
     137PASS < [offline-audio-context] All assertions passed. (total 1 assertions)
    138138PASS > [invalid-offline-audio-context-parameters] errors for invalid channel counts
    139139PASS   new OfflineAudioContext(0, 100, context.sampleRate) threw SyntaxError: "Number of channels is not in range".
     
    261261PASS   source.noteOff is equal to undefined.
    262262PASS < [misc] All assertions passed. (total 4 assertions)
    263 FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 24 tasks were failed. assert_true: expected true got false
     263PASS # AUDIT TASK RUNNER FINISHED: 24 tasks ran successfully.
    264264
  • trunk/Source/WebCore/ChangeLog

    r267148 r267151  
     12020-09-16  Chris Dumez  <cdumez@apple.com>
     2
     3        OfflineAudioContext should support up to 32 channels
     4        https://bugs.webkit.org/show_bug.cgi?id=216587
     5
     6        Reviewed by Darin Adler.
     7
     8        OfflineAudioContext should support up to 32 channels. It previously had
     9        an artificial limit of 10.
     10
     11        No new tests, updated existing test.
     12
     13        * Modules/webaudio/OfflineAudioContext.cpp:
     14        (WebCore::OfflineAudioContext::create):
     15
    1162020-09-16  Brent Fulgham  <bfulgham@apple.com>
    217
  • trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp

    r267147 r267151  
    4949    if (!is<Document>(context))
    5050        return Exception { NotSupportedError };
    51     if (!numberOfChannels || numberOfChannels > 10)
     51    if (!numberOfChannels || numberOfChannels > maxNumberOfChannels())
    5252        return Exception { SyntaxError, "Number of channels is not in range"_s };
    5353    if (!length)
Note: See TracChangeset for help on using the changeset viewer.