• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2018 The Chromium OS Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 #ifndef CRAS_AUDIO_THREAD_MONITOR_H_
7 #define CRAS_AUDIO_THREAD_MONITOR_H_
8 
9 /*
10  * Sends a debug event to the audio thread for debugging.
11  */
12 int cras_audio_thread_debug();
13 
14 /*
15  * Notifies the main thread when a busyloop event happens.
16  */
17 int cras_audio_thread_busyloop();
18 
19 /*
20  * Notifies the main thread when a underrun event happens.
21  */
22 int cras_audio_thread_underrun();
23 
24 /*
25  * Notifies the main thread when a severe underrun event happens.
26  */
27 int cras_audio_thread_severe_underrun();
28 
29 /*
30  * Initializes audio thread monitor and sets main thread callback.
31  */
32 int cras_audio_thread_monitor_init();
33 
34 #endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */
35