Align new VoE API with design.
BUG=webrtc:4690 Review URL: https://codereview.webrtc.org/1376153003 Cr-Commit-Position: refs/heads/master@{#10136}
This commit is contained in:
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "webrtc/config.h"
|
#include "webrtc/config.h"
|
||||||
#include "webrtc/stream.h"
|
#include "webrtc/stream.h"
|
||||||
|
#include "webrtc/transport.h"
|
||||||
#include "webrtc/typedefs.h"
|
#include "webrtc/typedefs.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
@ -44,9 +45,13 @@ class AudioReceiveStream : public ReceiveStream {
|
|||||||
std::vector<RtpExtension> extensions;
|
std::vector<RtpExtension> extensions;
|
||||||
} rtp;
|
} rtp;
|
||||||
|
|
||||||
// Underlying VoiceEngine handle, used to map AudioReceiveStream to
|
Transport* receive_transport = nullptr;
|
||||||
// lower-level components. Temporarily used while VoiceEngine channels are
|
Transport* rtcp_send_transport = nullptr;
|
||||||
// created outside of Call.
|
|
||||||
|
// Underlying VoiceEngine handle, used to map AudioReceiveStream to lower-
|
||||||
|
// level components.
|
||||||
|
// TODO(solenberg): Remove when VoiceEngine channels are created outside
|
||||||
|
// of Call.
|
||||||
int voe_channel_id = -1;
|
int voe_channel_id = -1;
|
||||||
|
|
||||||
// Identifier for an A/V synchronization group. Empty string to disable.
|
// Identifier for an A/V synchronization group. Empty string to disable.
|
||||||
|
@ -48,6 +48,12 @@ class AudioSendStream : public SendStream {
|
|||||||
// Transport for outgoing packets.
|
// Transport for outgoing packets.
|
||||||
Transport* send_transport = nullptr;
|
Transport* send_transport = nullptr;
|
||||||
|
|
||||||
|
// Underlying VoiceEngine handle, used to map AudioSendStream to lower-level
|
||||||
|
// components.
|
||||||
|
// TODO(solenberg): Remove when VoiceEngine channels are created outside
|
||||||
|
// of Call.
|
||||||
|
int voe_channel_id = -1;
|
||||||
|
|
||||||
rtc::scoped_ptr<AudioEncoder> encoder;
|
rtc::scoped_ptr<AudioEncoder> encoder;
|
||||||
int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator.
|
int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator.
|
||||||
int red_payload_type = -1; // pt, or -1 to disable REDundant coding.
|
int red_payload_type = -1; // pt, or -1 to disable REDundant coding.
|
||||||
|
@ -85,7 +85,7 @@ class Call {
|
|||||||
} bitrate_config;
|
} bitrate_config;
|
||||||
|
|
||||||
struct AudioConfig {
|
struct AudioConfig {
|
||||||
AudioDeviceModule* audio_device_manager = nullptr;
|
AudioDeviceModule* audio_device_module = nullptr;
|
||||||
AudioProcessing* audio_processing = nullptr;
|
AudioProcessing* audio_processing = nullptr;
|
||||||
VoiceEngineObserver* voice_engine_observer = nullptr;
|
VoiceEngineObserver* voice_engine_observer = nullptr;
|
||||||
} audio_config;
|
} audio_config;
|
||||||
|
Reference in New Issue
Block a user