mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Remove a couple of deprecated and unused AudioFrameOperations methods
Bug: webrtc:8649 Change-Id: I858b680e064c7d934c4437bddebd2bda2e9fc0a6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/348320 Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42135}
This commit is contained in:
parent
8d34912264
commit
cca6ceeb44
2 changed files with 0 additions and 28 deletions
|
@ -72,22 +72,6 @@ void AudioFrameOperations::Add(const AudioFrame& frame_to_add,
|
|||
}
|
||||
}
|
||||
|
||||
int AudioFrameOperations::MonoToStereo(AudioFrame* frame) {
|
||||
if (frame->num_channels_ != 1) {
|
||||
return -1;
|
||||
}
|
||||
UpmixChannels(2, frame);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AudioFrameOperations::StereoToMono(AudioFrame* frame) {
|
||||
if (frame->num_channels_ != 2) {
|
||||
return -1;
|
||||
}
|
||||
DownmixChannels(1, frame);
|
||||
return frame->num_channels_ == 1 ? 0 : -1;
|
||||
}
|
||||
|
||||
void AudioFrameOperations::QuadToStereo(const int16_t* src_audio,
|
||||
size_t samples_per_channel,
|
||||
int16_t* dst_audio) {
|
||||
|
|
|
@ -33,18 +33,6 @@ class AudioFrameOperations {
|
|||
// `result_frame` is empty.
|
||||
static void Add(const AudioFrame& frame_to_add, AudioFrame* result_frame);
|
||||
|
||||
// `frame.num_channels_` will be updated. This version checks for sufficient
|
||||
// buffer size and that `num_channels_` is mono. Use UpmixChannels
|
||||
// instead. TODO(bugs.webrtc.org/8649): remove.
|
||||
ABSL_DEPRECATED("bugs.webrtc.org/8649")
|
||||
static int MonoToStereo(AudioFrame* frame);
|
||||
|
||||
// `frame.num_channels_` will be updated. This version checks that
|
||||
// `num_channels_` is stereo. Use DownmixChannels
|
||||
// instead. TODO(bugs.webrtc.org/8649): remove.
|
||||
ABSL_DEPRECATED("bugs.webrtc.org/8649")
|
||||
static int StereoToMono(AudioFrame* frame);
|
||||
|
||||
// Downmixes 4 channels `src_audio` to stereo `dst_audio`. This is an in-place
|
||||
// operation, meaning `src_audio` and `dst_audio` may point to the same
|
||||
// buffer.
|
||||
|
|
Loading…
Reference in a new issue