Delete unused class AudioSourceWithMixStatus.
BUG=webrtc:6346 Review-Url: https://codereview.webrtc.org/2437863003 Cr-Commit-Position: refs/heads/master@{#14728}
This commit is contained in:
parent
25445d3d4b
commit
151572ba05
@ -16,8 +16,6 @@ rtc_static_library("audio_mixer_impl") {
|
||||
sources = [
|
||||
"audio_mixer_impl.cc",
|
||||
"audio_mixer_impl.h",
|
||||
"audio_source_with_mix_status.cc",
|
||||
"audio_source_with_mix_status.h",
|
||||
]
|
||||
|
||||
public = [
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
'sources': [
|
||||
'audio_mixer_impl.cc',
|
||||
'audio_mixer_impl.h',
|
||||
'audio_source_with_mix_status.cc',
|
||||
'audio_source_with_mix_status.h',
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2016 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.
|
||||
*/
|
||||
|
||||
#include "webrtc/modules/audio_mixer/audio_source_with_mix_status.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
AudioSourceWithMixStatus::AudioSourceWithMixStatus(
|
||||
AudioMixer::Source* audio_source)
|
||||
: audio_source_(audio_source) {}
|
||||
|
||||
AudioSourceWithMixStatus::~AudioSourceWithMixStatus() {}
|
||||
|
||||
bool AudioSourceWithMixStatus::IsMixed() const {
|
||||
return is_mixed_;
|
||||
}
|
||||
|
||||
bool AudioSourceWithMixStatus::WasMixed() const {
|
||||
// Was mixed is the same as is mixed depending on perspective. This function
|
||||
// is for the perspective of AudioMixerImpl.
|
||||
return IsMixed();
|
||||
}
|
||||
|
||||
void AudioSourceWithMixStatus::SetIsMixed(const bool mixed) {
|
||||
is_mixed_ = mixed;
|
||||
}
|
||||
|
||||
void AudioSourceWithMixStatus::ResetMixedStatus() {
|
||||
is_mixed_ = false;
|
||||
}
|
||||
|
||||
AudioMixer::Source* AudioSourceWithMixStatus::audio_source() const {
|
||||
return audio_source_;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
@ -1,45 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2016 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 WEBRTC_MODULES_AUDIO_MIXER_AUDIO_SOURCE_WITH_MIX_STATUS_H_
|
||||
#define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_SOURCE_WITH_MIX_STATUS_H_
|
||||
|
||||
#include "webrtc/api/audio/audio_mixer.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
// A class that holds a mixer participant and its mixing status.
|
||||
class AudioSourceWithMixStatus {
|
||||
public:
|
||||
explicit AudioSourceWithMixStatus(AudioMixer::Source* audio_source);
|
||||
~AudioSourceWithMixStatus();
|
||||
|
||||
AudioSourceWithMixStatus(const AudioSourceWithMixStatus&) = default;
|
||||
|
||||
// Returns true if the audio source was mixed this mix iteration.
|
||||
bool IsMixed() const;
|
||||
|
||||
// Returns true if the audio source was mixed previous mix
|
||||
// iteration.
|
||||
bool WasMixed() const;
|
||||
|
||||
// Updates the mixed status.
|
||||
void SetIsMixed(const bool mixed);
|
||||
void ResetMixedStatus();
|
||||
AudioMixer::Source* audio_source() const;
|
||||
|
||||
private:
|
||||
AudioMixer::Source* audio_source_ = nullptr;
|
||||
bool is_mixed_ = false;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_MODULES_AUDIO_MIXER_AUDIO_SOURCE_WITH_MIX_STATUS_H_
|
||||
Loading…
x
Reference in New Issue
Block a user