blob: b7355caa3a97985b880070296df118849ffd88ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CRAS_AUDIO_THREAD_MONITOR_H_
#define CRAS_AUDIO_THREAD_MONITOR_H_
/*
* Sends a debug event to the audio thread for debugging.
*/
int cras_audio_thread_event_debug();
/*
* Notifies the main thread when a busyloop event happens.
*/
int cras_audio_thread_event_busyloop();
/*
* Notifies the main thread when a underrun event happens.
*/
int cras_audio_thread_event_underrun();
/*
* Notifies the main thread when a severe underrun event happens.
*/
int cras_audio_thread_event_severe_underrun();
/*
* Notifies the main thread when a drop samples event happens.
*/
int cras_audio_thread_event_drop_samples();
/*
* Initializes audio thread monitor and sets main thread callback.
*/
int cras_audio_thread_monitor_init();
#endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */
|