Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h

Issue 2365653004: AudioCodingModule: Specify decoders using SdpAudioFormat (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h
diff --git a/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h b/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h
index 5d6fbb3cef23eb017909e725c308dbc4572f1956..aab68aef7f7dfa1aebd0d64588765a47cf904893 100644
--- a/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h
+++ b/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h
@@ -15,6 +15,8 @@
#include <string>
#include "webrtc/base/constructormagic.h"
+#include "webrtc/base/scoped_ref_ptr.h"
+#include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h"
#include "webrtc/system_wrappers/include/clock.h"
namespace webrtc {
@@ -37,7 +39,8 @@ class AcmReceiveTestOldApi {
AcmReceiveTestOldApi(PacketSource* packet_source,
AudioSink* audio_sink,
int output_freq_hz,
- NumOutputChannels exptected_output_channels);
+ NumOutputChannels exptected_output_channels,
+ rtc::scoped_refptr<AudioDecoderFactory> decoder_factory);
virtual ~AcmReceiveTestOldApi();
// Registers the codecs with default parameters from ACM.
@@ -56,6 +59,8 @@ class AcmReceiveTestOldApi {
// Runs the test and returns true if successful.
void Run();
+ AudioCodingModule* get_acm() { return acm_.get(); }
+
protected:
// Method is called after each block of output audio is received from ACM.
virtual void AfterGetAudio() {}

Powered by Google App Engine
This is Rietveld 408576698