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

Side by Side Diff: talk/app/webrtc/test/fakeaudiocapturemodule.h

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | talk/libjingle.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override; 184 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override;
185 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override; 185 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override;
186 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override; 186 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override;
187 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override; 187 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override;
188 188
189 int32_t ResetAudioDevice() override; 189 int32_t ResetAudioDevice() override;
190 int32_t SetLoudspeakerStatus(bool enable) override; 190 int32_t SetLoudspeakerStatus(bool enable) override;
191 int32_t GetLoudspeakerStatus(bool* enabled) const override; 191 int32_t GetLoudspeakerStatus(bool* enabled) const override;
192 virtual bool BuiltInAECIsAvailable() const { return false; } 192 virtual bool BuiltInAECIsAvailable() const { return false; }
193 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 193 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; }
194 virtual bool BuiltInAGCIsAvailable() const { return false; }
195 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; }
196 virtual bool BuiltInNSIsAvailable() const { return false; }
197 virtual int32_t EnableBuiltInNS(bool enable) { return -1; }
194 // End of functions inherited from webrtc::AudioDeviceModule. 198 // End of functions inherited from webrtc::AudioDeviceModule.
195 199
196 // The following function is inherited from rtc::MessageHandler. 200 // The following function is inherited from rtc::MessageHandler.
197 void OnMessage(rtc::Message* msg) override; 201 void OnMessage(rtc::Message* msg) override;
198 202
199 protected: 203 protected:
200 // The constructor is protected because the class needs to be created as a 204 // The constructor is protected because the class needs to be created as a
201 // reference counted object (for memory managment reasons). It could be 205 // reference counted object (for memory managment reasons). It could be
202 // exposed in which case the burden of proper instantiation would be put on 206 // exposed in which case the burden of proper instantiation would be put on
203 // the creator of a FakeAudioCaptureModule instance. To create an instance of 207 // the creator of a FakeAudioCaptureModule instance. To create an instance of
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 278
275 // Protects variables that are accessed from process_thread_ and 279 // Protects variables that are accessed from process_thread_ and
276 // the main thread. 280 // the main thread.
277 mutable rtc::CriticalSection crit_; 281 mutable rtc::CriticalSection crit_;
278 // Protects |audio_callback_| that is accessed from process_thread_ and 282 // Protects |audio_callback_| that is accessed from process_thread_ and
279 // the main thread. 283 // the main thread.
280 rtc::CriticalSection crit_callback_; 284 rtc::CriticalSection crit_callback_;
281 }; 285 };
282 286
283 #endif // TALK_APP_WEBRTC_TEST_FAKEAUDIOCAPTUREMODULE_H_ 287 #endif // TALK_APP_WEBRTC_TEST_FAKEAUDIOCAPTUREMODULE_H_
OLDNEW
« no previous file with comments | « no previous file | talk/libjingle.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698