blob: 47e67a91da93fb67c09f498a5dc8598484ebd2a7 [file] [log] [blame]
Sebastian Janssonfdbbada2020-01-30 18:13:54 +00001/*
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
14#include <stdint.h>
15
Artem Titovd15a5752021-02-10 14:31:24 +010016#include "api/sequence_checker.h"
Sebastian Janssonfdbbada2020-01-30 18:13:54 +000017#include "modules/audio_device/include/audio_device_defines.h"
18#include "rtc_base/message_handler.h"
Sebastian Janssonfdbbada2020-01-30 18:13:54 +000019
20namespace webrtc {
21namespace internal {
22
23class NullAudioPoller final : public rtc::MessageHandler {
24 public:
25 explicit NullAudioPoller(AudioTransport* audio_transport);
26 ~NullAudioPoller() override;
27
28 protected:
29 void OnMessage(rtc::Message* msg) override;
30
31 private:
Artem Titovc8421c42021-02-02 10:57:19 +010032 SequenceChecker thread_checker_;
Sebastian Janssonfdbbada2020-01-30 18:13:54 +000033 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_