diff options
author | Erwin Jansen <jansene@google.com> | 2021-06-30 07:29:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-06-30 07:29:26 +0000 |
commit | 059cdc5996938f5f6b5343b6c969c12098275587 (patch) | |
tree | 6eacaffe4bebf8e00c290c1e1839e084b0c52e88 /modules/audio_device/audio_device_impl.cc | |
parent | 97e54a7e73c7b24e464ef06ef3c3b3716f21bb15 (diff) | |
parent | 16be34ae72cdb525c88c2b31b21b976f35fe36d8 (diff) | |
download | webrtc-059cdc5996938f5f6b5343b6c969c12098275587.tar.gz |
Merge "Merge upstream-master and enable ARM64" into emu-master-devemu-31-stable-releaseemu-31-release
Diffstat (limited to 'modules/audio_device/audio_device_impl.cc')
-rw-r--r-- | modules/audio_device/audio_device_impl.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/audio_device/audio_device_impl.cc b/modules/audio_device/audio_device_impl.cc index 0e8bd28c50..84460ff83f 100644 --- a/modules/audio_device/audio_device_impl.cc +++ b/modules/audio_device/audio_device_impl.cc @@ -92,27 +92,26 @@ rtc::scoped_refptr<AudioDeviceModuleForTest> AudioDeviceModule::CreateForTest( } // Create the generic reference counted (platform independent) implementation. - rtc::scoped_refptr<AudioDeviceModuleImpl> audioDevice( - new rtc::RefCountedObject<AudioDeviceModuleImpl>(audio_layer, - task_queue_factory)); + auto audio_device = rtc::make_ref_counted<AudioDeviceModuleImpl>( + audio_layer, task_queue_factory); // Ensure that the current platform is supported. - if (audioDevice->CheckPlatform() == -1) { + if (audio_device->CheckPlatform() == -1) { return nullptr; } // Create the platform-dependent implementation. - if (audioDevice->CreatePlatformSpecificObjects() == -1) { + if (audio_device->CreatePlatformSpecificObjects() == -1) { return nullptr; } // Ensure that the generic audio buffer can communicate with the platform // specific parts. - if (audioDevice->AttachAudioBuffer() == -1) { + if (audio_device->AttachAudioBuffer() == -1) { return nullptr; } - return audioDevice; + return audio_device; } AudioDeviceModuleImpl::AudioDeviceModuleImpl( |