aboutsummaryrefslogtreecommitdiff
path: root/modules/audio_device/dummy/file_audio_device.h
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2021-06-30 07:29:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-30 07:29:26 +0000
commit059cdc5996938f5f6b5343b6c969c12098275587 (patch)
tree6eacaffe4bebf8e00c290c1e1839e084b0c52e88 /modules/audio_device/dummy/file_audio_device.h
parent97e54a7e73c7b24e464ef06ef3c3b3716f21bb15 (diff)
parent16be34ae72cdb525c88c2b31b21b976f35fe36d8 (diff)
downloadwebrtc-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/dummy/file_audio_device.h')
-rw-r--r--modules/audio_device/dummy/file_audio_device.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/audio_device/dummy/file_audio_device.h b/modules/audio_device/dummy/file_audio_device.h
index ecb3f2f533..f4a6b76586 100644
--- a/modules/audio_device/dummy/file_audio_device.h
+++ b/modules/audio_device/dummy/file_audio_device.h
@@ -17,14 +17,11 @@
#include <string>
#include "modules/audio_device/audio_device_generic.h"
+#include "rtc_base/platform_thread.h"
#include "rtc_base/synchronization/mutex.h"
#include "rtc_base/system/file_wrapper.h"
#include "rtc_base/time_utils.h"
-namespace rtc {
-class PlatformThread;
-} // namespace rtc
-
namespace webrtc {
// This is a fake audio device which plays audio from a file as its microphone
@@ -145,9 +142,8 @@ class FileAudioDevice : public AudioDeviceGeneric {
size_t _recordingFramesIn10MS;
size_t _playoutFramesIn10MS;
- // TODO(pbos): Make plain members instead of pointers and stop resetting them.
- std::unique_ptr<rtc::PlatformThread> _ptrThreadRec;
- std::unique_ptr<rtc::PlatformThread> _ptrThreadPlay;
+ rtc::PlatformThread _ptrThreadRec;
+ rtc::PlatformThread _ptrThreadPlay;
bool _playing;
bool _recording;