APM: Remove the usage of AudioFrame in the AudioProcessing interface
This CL removes the AudioFrame-based APIs from the AudioProcessing interface. Bug: webrtc:5298 Change-Id: Iab470b26b10e06dcf29c543851ae0085bc5b66f0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172939 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31016}
This commit is contained in:
@ -39,7 +39,6 @@ namespace webrtc {
|
||||
|
||||
class AecDump;
|
||||
class AudioBuffer;
|
||||
class AudioFrame;
|
||||
|
||||
class StreamConfig;
|
||||
class ProcessingConfig;
|
||||
@ -523,18 +522,6 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
// Enqueue a runtime setting.
|
||||
virtual void SetRuntimeSetting(RuntimeSetting setting) = 0;
|
||||
|
||||
// Processes a 10 ms |frame| of the primary audio stream. On the client-side,
|
||||
// this is the near-end (or captured) audio.
|
||||
//
|
||||
// If needed for enabled functionality, any function with the set_stream_ tag
|
||||
// must be called prior to processing the current frame. Any getter function
|
||||
// with the stream_ tag which is needed should be called after processing.
|
||||
//
|
||||
// The |sample_rate_hz_|, |num_channels_|, and |samples_per_channel_|
|
||||
// members of |frame| must be valid. If changed from the previous call to this
|
||||
// method, it will trigger an initialization.
|
||||
virtual int ProcessStream(AudioFrame* frame) = 0;
|
||||
|
||||
// Accepts and produces a 10 ms frame interleaved 16 bit integer audio as
|
||||
// specified in |input_config| and |output_config|. |src| and |dest| may use
|
||||
// the same memory, if desired.
|
||||
@ -555,20 +542,6 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
const StreamConfig& output_config,
|
||||
float* const* dest) = 0;
|
||||
|
||||
// Processes a 10 ms |frame| of the reverse direction audio stream. The frame
|
||||
// may be modified. On the client-side, this is the far-end (or to be
|
||||
// rendered) audio.
|
||||
//
|
||||
// It is necessary to provide this if echo processing is enabled, as the
|
||||
// reverse stream forms the echo reference signal. It is recommended, but not
|
||||
// necessary, to provide if gain control is enabled. On the server-side this
|
||||
// typically will not be used. If you're not sure what to pass in here,
|
||||
// chances are you don't need to use it.
|
||||
//
|
||||
// The |sample_rate_hz_|, |num_channels_|, and |samples_per_channel_|
|
||||
// members of |frame| must be valid.
|
||||
virtual int ProcessReverseStream(AudioFrame* frame) = 0;
|
||||
|
||||
// Accepts and produces a 10 ms frame of interleaved 16 bit integer audio for
|
||||
// the reverse direction audio stream as specified in |input_config| and
|
||||
// |output_config|. |src| and |dest| may use the same memory, if desired.
|
||||
|
Reference in New Issue
Block a user