2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_INTERNAL_H_
12 #define WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_INTERNAL_H_
21 // Upmix or downmix and resample the audio in |src_frame| to |dst_frame|.
22 // Expects |dst_frame| to have its |num_channels_| and |sample_rate_hz_| set to
23 // the desired values. Updates |samples_per_channel_| accordingly.
25 // On failure, returns -1 and copies |src_frame| to |dst_frame|.
26 int RemixAndResample(const AudioFrame& src_frame,
27 PushResampler* resampler,
28 AudioFrame* dst_frame);
33 #endif // VOICE_ENGINE_OUTPUT_MIXER_INTERNAL_H_