Fixes Chromium FYI build issue on Android.
See https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Android%20Builder%20(dbg) for details BUG= R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/47219004 Cr-Commit-Position: refs/heads/master@{#9217}
This commit is contained in:
parent
ccb49e79fd
commit
24e56e3ee8
@ -195,15 +195,12 @@ public:
|
||||
|
||||
public:
|
||||
int32_t Id() {return _id;}
|
||||
#if defined(WEBRTC_ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD)
|
||||
// Only use this acccessor for test purposes on Android.
|
||||
AudioManager* GetAndroidAudioManagerForTest() {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
return _audioManagerAndroid.get();
|
||||
#else
|
||||
CHECK(false) << "Invalid usage of GetAndroidAudioManagerForTest";
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
AudioDeviceBuffer* GetAudioDeviceBuffer() {
|
||||
return &_audioDeviceBuffer;
|
||||
}
|
||||
@ -223,7 +220,7 @@ private:
|
||||
AudioDeviceGeneric* _ptrAudioDevice;
|
||||
|
||||
AudioDeviceBuffer _audioDeviceBuffer;
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#if defined(WEBRTC_ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD)
|
||||
rtc::scoped_ptr<AudioManager> _audioManagerAndroid;
|
||||
#endif
|
||||
int32_t _id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user