aboutsummaryrefslogtreecommitdiff
path: root/modules/audio_device/mac/audio_device_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/audio_device/mac/audio_device_mac.h')
-rw-r--r--modules/audio_device/mac/audio_device_mac.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/audio_device/mac/audio_device_mac.h b/modules/audio_device/mac/audio_device_mac.h
index 985db9da52..f9504b64b5 100644
--- a/modules/audio_device/mac/audio_device_mac.h
+++ b/modules/audio_device/mac/audio_device_mac.h
@@ -21,15 +21,12 @@
#include "modules/audio_device/mac/audio_mixer_manager_mac.h"
#include "rtc_base/event.h"
#include "rtc_base/logging.h"
+#include "rtc_base/platform_thread.h"
#include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_annotations.h"
struct PaUtilRingBuffer;
-namespace rtc {
-class PlatformThread;
-} // namespace rtc
-
namespace webrtc {
const uint32_t N_REC_SAMPLES_PER_SEC = 48000;
@@ -271,13 +268,11 @@ class AudioDeviceMac : public AudioDeviceGeneric {
rtc::Event _stopEventRec;
rtc::Event _stopEvent;
- // TODO(pbos): Replace with direct members, just start/stop, no need to
- // recreate the thread.
// Only valid/running between calls to StartRecording and StopRecording.
- std::unique_ptr<rtc::PlatformThread> capture_worker_thread_;
+ rtc::PlatformThread capture_worker_thread_;
// Only valid/running between calls to StartPlayout and StopPlayout.
- std::unique_ptr<rtc::PlatformThread> render_worker_thread_;
+ rtc::PlatformThread render_worker_thread_;
AudioMixerManagerMac _mixerManager;