Commit e94f1008 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Switch WebAudioDestinationConsumer away from WebVector

... now that it resides out of the Blink API layer.

BUG=704136
R=haraken@chromium.org

Change-Id: Ibfc613dea5f304c9c29cd96a2465e71cfbe7a7e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991404
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729593}
parent 2a83e743
......@@ -182,7 +182,7 @@ void ConsumerWrapper::ConsumeAudio(AudioBus* bus, size_t number_of_frames) {
// Wrap AudioBus.
size_t number_of_channels = bus->NumberOfChannels();
WebVector<const float*> bus_vector(number_of_channels);
Vector<const float*> bus_vector(number_of_channels);
for (size_t i = 0; i < number_of_channels; ++i)
bus_vector[i] = bus->Channel(i)->Data();
......
......@@ -25,7 +25,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_MEDIASTREAM_WEBAUDIO_DESTINATION_CONSUMER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_MEDIASTREAM_WEBAUDIO_DESTINATION_CONSUMER_H_
#include "third_party/blink/public/platform/web_vector.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
......@@ -38,7 +38,7 @@ class WebAudioDestinationConsumer {
// The size of the vector is the number of audio channels, and
// |number_of_frames| is the number of audio frames in the (possibly
// multi-channel) buffer in a planar format.
virtual void ConsumeAudio(const WebVector<const float*>&,
virtual void ConsumeAudio(const Vector<const float*>&,
size_t number_of_frames) = 0;
};
......
......@@ -84,7 +84,7 @@ void WebAudioMediaStreamSource::EnsureSourceIsStopped() {
}
void WebAudioMediaStreamSource::ConsumeAudio(
const WebVector<const float*>& audio_data,
const Vector<const float*>& audio_data,
size_t number_of_frames) {
// TODO(miu): Plumbing is needed to determine the actual capture timestamp
// of the audio, instead of just snapshotting base::TimeTicks::Now(), for
......
......@@ -39,7 +39,7 @@ class PLATFORM_EXPORT WebAudioMediaStreamSource final
// concurrently across threads, but these methods could be called on any
// thread.
void SetFormat(size_t number_of_channels, float sample_rate) override;
void ConsumeAudio(const WebVector<const float*>& audio_data,
void ConsumeAudio(const Vector<const float*>& audio_data,
size_t number_of_frames) override;
// Called by AudioPushFifo zero or more times during the call to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment