2010-09-03 Chris Rogers <crogers@google.com>
authorcrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Sep 2010 19:10:09 +0000 (19:10 +0000)
committercrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Sep 2010 19:10:09 +0000 (19:10 +0000)
commitfadee9ef37bc8dc21b6f8c54a22f07f1c5a32579
tree99689351f0fa9499eecfb880b66afb182f79ac5b
parentc8847970e2783f15b68976f3652c4057af3c3af7
2010-09-03  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Initial patch for audio engine: AudioBus and helper classes
        https://bugs.webkit.org/show_bug.cgi?id=34452

        No new tests since audio API is not yet implemented.

        * platform/audio/AudioBus.cpp: Added.
        (WebCore::AudioBus::AudioBus):
        (WebCore::AudioBus::setChannelMemory):
        (WebCore::AudioBus::zero):
        (WebCore::AudioBus::channelByType):
        (WebCore::AudioBus::topologyMatches):
        (WebCore::AudioBus::createBufferFromRange):
        (WebCore::AudioBus::maxAbsValue):
        (WebCore::AudioBus::normalize):
        (WebCore::AudioBus::scale):
        (WebCore::AudioBus::copyFrom):
        (WebCore::AudioBus::sumFrom):
        (WebCore::AudioBus::processWithGainFromMonoStereo):
        (WebCore::AudioBus::processWithGainFrom):
        (WebCore::AudioBus::copyWithGainFrom):
        (WebCore::AudioBus::sumWithGainFrom):
        * platform/audio/AudioBus.h: Added.
        (WebCore::AudioBus::numberOfChannels):
        (WebCore::AudioBus::channel):
        (WebCore::AudioBus::length):
        (WebCore::AudioBus::sampleRate):
        (WebCore::AudioBus::setSampleRate):
        (WebCore::AudioBus::setGain):
        (WebCore::AudioBus::gain):
        (WebCore::AudioBus::reset):
        (WebCore::AudioBus::AudioBus):
        * platform/audio/AudioSourceProvider.h: Added.
        (WebCore::AudioSourceProvider::~AudioSourceProvider):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/audio/AudioBus.cpp [new file with mode: 0644]
WebCore/platform/audio/AudioBus.h [new file with mode: 0644]
WebCore/platform/audio/AudioSourceProvider.h [new file with mode: 0644]