Index: webrtc/modules/audio_device/ios/audio_device_ios.h |
diff --git a/webrtc/modules/audio_device/ios/audio_device_ios.h b/webrtc/modules/audio_device/ios/audio_device_ios.h |
index 1bac27dd6bf31001e9c321524a0865abf72243d3..c4eb0d6f6451a5e8b8efa8da3924eb0236cc26bd 100644 |
--- a/webrtc/modules/audio_device/ios/audio_device_ios.h |
+++ b/webrtc/modules/audio_device/ios/audio_device_ios.h |
@@ -13,7 +13,6 @@ |
#include <AudioUnit/AudioUnit.h> |
-#include "webrtc/base/atomicops.h" |
#include "webrtc/base/scoped_ptr.h" |
#include "webrtc/base/thread_checker.h" |
#include "webrtc/modules/audio_device/audio_device_generic.h" |
@@ -54,15 +53,11 @@ |
int32_t StartPlayout() override; |
int32_t StopPlayout() override; |
- bool Playing() const override { |
- return rtc::AtomicInt::AcquireLoad(&playing_) != 0; |
- } |
+ bool Playing() const override { return playing_; } |
int32_t StartRecording() override; |
int32_t StopRecording() override; |
- bool Recording() const override { |
- return rtc::AtomicInt::AcquireLoad(&recording_) != 0; |
- } |
+ bool Recording() const override { return recording_; } |
int32_t SetLoudspeakerStatus(bool enable) override; |
int32_t GetLoudspeakerStatus(bool& enabled) const override; |
@@ -276,10 +271,10 @@ |
rtc::scoped_ptr<SInt8[]> record_audio_buffer_; |
// Set to 1 when recording is active and 0 otherwise. |
- rtc::AtomicInt recording_; |
+ volatile int recording_; |
// Set to 1 when playout is active and 0 otherwise. |
- rtc::AtomicInt playing_; |
+ volatile int playing_; |
// Set to true after successful call to Init(), false otherwise. |
bool initialized_; |