xref: /aosp_15_r20/external/webrtc/sdk/objc/native/src/objc_audio_device_delegate.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef SDK_OBJC_NATIVE_SRC_OBJC_AUDIO_DEVICE_DELEGATE_H_
12 #define SDK_OBJC_NATIVE_SRC_OBJC_AUDIO_DEVICE_DELEGATE_H_
13 
14 #include "api/scoped_refptr.h"
15 #include "rtc_base/thread.h"
16 
17 #import "components/audio/RTCAudioDevice.h"
18 
19 namespace webrtc {
20 namespace objc_adm {
21 class ObjCAudioDeviceModule;
22 }  // namespace objc_adm
23 }  // namespace webrtc
24 
25 @interface ObjCAudioDeviceDelegate : NSObject <RTC_OBJC_TYPE (RTCAudioDeviceDelegate)>
26 
27 - (instancetype)initWithAudioDeviceModule:
28                     (rtc::scoped_refptr<webrtc::objc_adm::ObjCAudioDeviceModule>)audioDeviceModule
29                         audioDeviceThread:(rtc::Thread*)thread;
30 
31 - (void)resetAudioDeviceModule;
32 
33 @end
34 
35 #endif  // SDK_OBJC_NATIVE_SRC_OBJC_AUDIO_DEVICE_DELEGATE_H_
36