X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fplatform%2Faudio%2FAudioBus.h;h=a87f55d3132ec3a956e2e946fb64f1a045791e75;hp=1943c0d164a46670ccc100b568db3bb5c14c7f46;hb=a650589661fb24321909ffb04c3d06511e2884bd;hpb=39ed75cc989e7a2b7bbbbd7d00498645ad9d6979 diff --git a/Source/WebCore/platform/audio/AudioBus.h b/Source/WebCore/platform/audio/AudioBus.h index 1943c0d164a4..a87f55d3132e 100644 --- a/Source/WebCore/platform/audio/AudioBus.h +++ b/Source/WebCore/platform/audio/AudioBus.h @@ -124,6 +124,9 @@ public: void copyWithGainFrom(const AudioBus &sourceBus, double* lastMixGain, double targetGain); void sumWithGainFrom(const AudioBus &sourceBus, double* lastMixGain, double targetGain); + // Copies the sourceBus by scaling with sample-accurate gain values. + void copyWithSampleAccurateGainValuesFrom(const AudioBus &sourceBus, float* gainValues, unsigned numberOfGainValues); + // Returns maximum absolute value across all channels (useful for normalization). float maxAbsValue() const;