1 #ifndef OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_AUDIO_SOURCE_CONFIGURATION_H
2 #define OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_AUDIO_SOURCE_CONFIGURATION_H
4 #include <api/audio_options.h>
5 #include <modules/audio_processing/include/audio_processing.h>
14 uint32_t m_soundCardTotalDelayMs;
15 absl::optional<bool> m_echoCancellation;
16 absl::optional<bool> m_autoGainControl;
17 absl::optional<bool> m_noiseSuppression;
18 absl::optional<bool> m_highpassFilter;
19 absl::optional<bool> m_stereoSwapping;
20 absl::optional<bool> m_transientSuppression;
54 explicit operator cricket::AudioOptions()
const;
55 explicit operator webrtc::AudioProcessing::Config()
const;
91 uint32_t soundCardTotalDelayMs,
92 absl::optional<bool> echoCancellation,
93 absl::optional<bool> autoGainControl,
94 absl::optional<bool> noiseSuppression,
95 absl::optional<bool> highpassFilter,
96 absl::optional<bool> stereoSwapping,
97 absl::optional<bool> transientSuppression)
151 return m_transientSuppression;
Represents a configuration of an audio source that can be added to a WebRTC call.
Definition: AudioSourceConfiguration.h:13
uint32_t soundCardTotalDelayMs() const
Returns the sum of the playback and recording delays.
Definition: AudioSourceConfiguration.h:113
absl::optional< bool > noiseSuppression() const
Indicates if the noise suppression is enabled.
Definition: AudioSourceConfiguration.h:131
static AudioSourceConfiguration create(uint32_t soundCardTotalDelayMs)
Creates an audio source configuration with default values.
Definition: AudioSourceConfiguration.h:66
absl::optional< bool > stereoSwapping() const
Indicates if the stereo swapping is enabled.
Definition: AudioSourceConfiguration.h:143
absl::optional< bool > autoGainControl() const
Indicates if the auto gain control is enabled.
Definition: AudioSourceConfiguration.h:125
absl::optional< bool > transientSuppression() const
Indicates if the transient suppression is enabled.
Definition: AudioSourceConfiguration.h:149
absl::optional< bool > highpassFilter() const
Indicates if the highpass filter is enabled.
Definition: AudioSourceConfiguration.h:137
absl::optional< bool > echoCancellation() const
Indicates if the echo cancellation is enabled.
Definition: AudioSourceConfiguration.h:119