ObjC ADM: added RTCAudioDevice protocol [2/N]
Bug: webrtc:14193 Change-Id: I616c4d338a0bbc57c22e1f1dcc4454512aecd967 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268195 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> Commit-Queue: Yury Yarashevich <yura.yaroshevich@gmail.com> Cr-Commit-Position: refs/heads/main@{#37925}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
9068f456a3
commit
1d0b0aed97
@ -11,6 +11,7 @@
|
||||
#ifndef SDK_OBJC_NATIVE_SRC_OBJC_AUDIO_DEVICE_H_
|
||||
#define SDK_OBJC_NATIVE_SRC_OBJC_AUDIO_DEVICE_H_
|
||||
|
||||
#import "components/audio/RTCAudioDevice.h"
|
||||
#include "modules/audio_device/include/audio_device.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -19,7 +20,8 @@ namespace objc_adm {
|
||||
|
||||
class ObjCAudioDeviceModule : public AudioDeviceModule {
|
||||
public:
|
||||
ObjCAudioDeviceModule();
|
||||
explicit ObjCAudioDeviceModule(
|
||||
id<RTC_OBJC_TYPE(RTCAudioDevice)> audio_device);
|
||||
~ObjCAudioDeviceModule() override;
|
||||
|
||||
// Retrieve the currently utilized audio layer
|
||||
@ -123,6 +125,9 @@ class ObjCAudioDeviceModule : public AudioDeviceModule {
|
||||
int GetPlayoutAudioParameters(AudioParameters* params) const override;
|
||||
int GetRecordAudioParameters(AudioParameters* params) const override;
|
||||
#endif // WEBRTC_IOS
|
||||
|
||||
private:
|
||||
id<RTC_OBJC_TYPE(RTCAudioDevice)> audio_device_;
|
||||
};
|
||||
|
||||
} // namespace objc_adm
|
||||
|
||||
Reference in New Issue
Block a user