/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef COMMON_AUDIO_RESAMPLER_PUSH_SINC_RESAMPLER_H_ #define COMMON_AUDIO_RESAMPLER_PUSH_SINC_RESAMPLER_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include "api/audio/audio_view.h" #include "common_audio/resampler/sinc_resampler.h" namespace webrtc { // A thin wrapper over SincResampler to provide a push-based interface as // required by WebRTC. SincResampler uses a pull-based interface, and will // use SincResamplerCallback::Run() to request data upon a call to Resample(). // These Run() calls will happen on the same thread Resample() is called on. class PushSincResampler : public SincResamplerCallback { … }; } // namespace webrtc #endif // COMMON_AUDIO_RESAMPLER_PUSH_SINC_RESAMPLER_H_