Changeset 106580 in webkit
- Timestamp:
- Feb 2, 2012 12:46:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106579 r106580 1 2012-02-02 Raymond Toy <rtoy@google.com> 2 3 Constant values to set "distanceModel" are undefined 4 https://bugs.webkit.org/show_bug.cgi?id=74273 5 6 Reviewed by Kenneth Russell. 7 8 * webaudio/distance-exponential-expected.txt: Added. 9 * webaudio/distance-exponential.html: Added. 10 * webaudio/distance-inverse-expected.txt: Added. 11 * webaudio/distance-inverse.html: Added. 12 * webaudio/distance-linear-expected.txt: Added. 13 * webaudio/distance-linear.html: Added. 14 * webaudio/resources/distance-model-testing.js: Added. 15 (createImpulseBuffer): 16 (linearDistance): 17 (exponentialDistance): 18 (inverseDistance): 19 (createGraph): 20 (startSources): 21 (equalPowerGain): 22 (checkDistanceResult.return.renderedBuffer): 23 (checkDistanceResult): 24 1 25 2012-02-02 Raymond Toy <rtoy@google.com> 2 26 -
trunk/Source/WebCore/ChangeLog
r106579 r106580 1 2012-02-02 Raymond Toy <rtoy@google.com> 2 3 Constant values to set "distanceModel" are undefined 4 https://bugs.webkit.org/show_bug.cgi?id=74273 5 6 Reviewed by Kenneth Russell. 7 8 Tests: webaudio/distance-exponential.html 9 webaudio/distance-inverse.html 10 webaudio/distance-linear.html 11 12 * webaudio/AudioPannerNode.h: Define enum for the new constants 13 for the distance models. 14 * webaudio/AudioPannerNode.idl: Define matching constants for the 15 distance models. 16 1 17 2012-02-02 Raymond Toy <rtoy@google.com> 2 18 -
trunk/Source/WebCore/webaudio/AudioPannerNode.h
r106579 r106580 54 54 }; 55 55 56 // These must be defined as in the .idl file and must match those 57 // in the DistanceEffect class. 58 enum { 59 LINEAR_DISTANCE = 0, 60 INVERSE_DISTANCE = 1, 61 EXPONENTIAL_DISTANCE = 2, 62 }; 63 56 64 static PassRefPtr<AudioPannerNode> create(AudioContext* context, float sampleRate) 57 65 { -
trunk/Source/WebCore/webaudio/AudioPannerNode.idl
r106579 r106580 33 33 const unsigned short SOUNDFIELD = 2; 34 34 35 // Distance model 36 const unsigned short LINEAR_DISTANCE = 0; 37 const unsigned short INVERSE_DISTANCE = 1; 38 const unsigned short EXPONENTIAL_DISTANCE = 2; 39 35 40 // Default model for stereo is HRTF 36 41 // FIXME: use unsigned short when glue generation supports it
Note: See TracChangeset
for help on using the changeset viewer.