summaryrefslogtreecommitdiff
path: root/cras/src/server/cras_audio_thread_monitor.h
blob: 39b21765feafad8c41a8591f653b09f5a301e8a7 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* 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_

/*
 * Notifies the main thread when A2DP buffer overruns.
 */
int cras_audio_thread_event_a2dp_overrun();

/*
 * Notifies the main thread when A2DP packet transmittion throttles.
 */
int cras_audio_thread_event_a2dp_throttle();

/*
 * 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();

/*
 * Notifies the main thread when a device overrun event happens.
 */
int cras_audio_thread_event_dev_overrun();

/*
 * Initializes audio thread monitor and sets main thread callback.
 */
int cras_audio_thread_monitor_init();

#endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */