blob: 97cd2c7e6c6cc7d8d1e11bc12703bfb3c6c95248 [file] [log] [blame]
henrika5f6bf242017-11-01 11:06:56 +01001/*
2 * Copyright (c) 2017 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 AUDIO_NULL_AUDIO_POLLER_H_
12#define AUDIO_NULL_AUDIO_POLLER_H_
13
Yves Gerey988cc082018-10-23 12:03:01 +020014#include <stdint.h>
15
henrika5f6bf242017-11-01 11:06:56 +010016#include "modules/audio_device/include/audio_device_defines.h"
Steve Anton10542f22019-01-11 09:11:00 -080017#include "rtc_base/message_handler.h"
henrika5f6bf242017-11-01 11:06:56 +010018#include "rtc_base/thread_checker.h"
19
20namespace webrtc {
21namespace internal {
22
23class NullAudioPoller final : public rtc::MessageHandler {
24 public:
25 explicit NullAudioPoller(AudioTransport* audio_transport);
Mirko Bonadei8fdcac32018-08-28 16:30:18 +020026 ~NullAudioPoller() override;
henrika5f6bf242017-11-01 11:06:56 +010027
28 protected:
29 void OnMessage(rtc::Message* msg) override;
30
31 private:
32 rtc::ThreadChecker thread_checker_;
33 AudioTransport* const audio_transport_;
34 int64_t reschedule_at_;
35};
36
37} // namespace internal
38} // namespace webrtc
39
40#endif // AUDIO_NULL_AUDIO_POLLER_H_