aboutsummaryrefslogtreecommitdiff
path: root/host/frontend/webrtc/libdevice/audio_track_source_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/frontend/webrtc/libdevice/audio_track_source_impl.cpp')
-rw-r--r--host/frontend/webrtc/libdevice/audio_track_source_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/frontend/webrtc/libdevice/audio_track_source_impl.cpp b/host/frontend/webrtc/libdevice/audio_track_source_impl.cpp
index 72756e195..c10e2630b 100644
--- a/host/frontend/webrtc/libdevice/audio_track_source_impl.cpp
+++ b/host/frontend/webrtc/libdevice/audio_track_source_impl.cpp
@@ -51,12 +51,12 @@ const cricket::AudioOptions AudioTrackSourceImpl::options() const {
return cricket::AudioOptions();
}
-void AudioTrackSourceImpl::OnFrame(std::shared_ptr<AudioFrameBuffer> frame,
+void AudioTrackSourceImpl::OnFrame(const AudioFrameBuffer& frame,
int64_t timestamp_ms) {
std::lock_guard<std::mutex> lock(sinks_mutex_);
for (auto sink : sinks_) {
- sink->OnData(frame->data(), frame->bits_per_sample(),
- frame->sample_rate(), frame->channels(), frame->frames(),
+ sink->OnData(frame.data(), frame.bits_per_sample(),
+ frame.sample_rate(), frame.channels(), frame.frames(),
timestamp_ms);
}
}