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 * Notifies the main thread when A2DP buffer overruns. 11 */ 12 int cras_audio_thread_event_a2dp_overrun(); 13 14 /* 15 * Notifies the main thread when A2DP packet transmittion throttles. 16 */ 17 int cras_audio_thread_event_a2dp_throttle(); 18 19 /* 20 * Sends a debug event to the audio thread for debugging. 21 */ 22 int cras_audio_thread_event_debug(); 23 24 /* 25 * Notifies the main thread when a busyloop event happens. 26 */ 27 int cras_audio_thread_event_busyloop(); 28 29 /* 30 * Notifies the main thread when a underrun event happens. 31 */ 32 int cras_audio_thread_event_underrun(); 33 34 /* 35 * Notifies the main thread when a severe underrun event happens. 36 */ 37 int cras_audio_thread_event_severe_underrun(); 38 39 /* 40 * Notifies the main thread when a drop samples event happens. 41 */ 42 int cras_audio_thread_event_drop_samples(); 43 44 /* 45 * Notifies the main thread when a device overrun event happens. 46 */ 47 int cras_audio_thread_event_dev_overrun(); 48 49 /* 50 * Initializes audio thread monitor and sets main thread callback. 51 */ 52 int cras_audio_thread_monitor_init(); 53 54 #endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */ 55