Removes usage if ID in AudioDeviceImpl.

This CL is a follow-up on https://webrtc-review.googlesource.com/c/src/+/8380

TBR=solenberg

Bug: webrtc:7306
Change-Id: I26cd59d51f15b81d7262b6eb5fc64cbb256c8754
Reviewed-on: https://webrtc-review.googlesource.com/8440
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20249}
This commit is contained in:
henrika
2017-10-11 15:14:51 +02:00
committed by Commit Bot
parent ca0ed63c19
commit 5ff64831f9
8 changed files with 15 additions and 22 deletions

View File

@ -41,7 +41,7 @@ class AudioDeviceModuleImpl : public AudioDeviceModule {
int32_t CreatePlatformSpecificObjects();
int32_t AttachAudioBuffer();
AudioDeviceModuleImpl(const int32_t id, const AudioLayer audioLayer);
AudioDeviceModuleImpl(const AudioLayer audioLayer);
~AudioDeviceModuleImpl() override;
// Retrieve the currently utilized audio layer
@ -160,7 +160,6 @@ class AudioDeviceModuleImpl : public AudioDeviceModule {
int GetRecordAudioParameters(AudioParameters* params) const override;
#endif // WEBRTC_IOS
int32_t Id() const { return id_; }
#if defined(WEBRTC_ANDROID)
// Only use this acccessor for test purposes on Android.
AudioManager* GetAndroidAudioManagerForTest() {
@ -173,7 +172,6 @@ class AudioDeviceModuleImpl : public AudioDeviceModule {
PlatformType Platform() const;
AudioLayer PlatformAudioLayer() const;
const int32_t id_;
AudioLayer audio_layer_;
PlatformType platform_type_ = kPlatformNotSupported;
bool initialized_ = false;