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_event_debug(); 13 14 /* 15 * Notifies the main thread when a busyloop event happens. 16 */ 17 int cras_audio_thread_event_busyloop(); 18 19 /* 20 * Notifies the main thread when a underrun event happens. 21 */ 22 int cras_audio_thread_event_underrun(); 23 24 /* 25 * Notifies the main thread when a severe underrun event happens. 26 */ 27 int cras_audio_thread_event_severe_underrun(); 28 29 /* 30 * Notifies the main thread when a drop samples event happens. 31 */ 32 int cras_audio_thread_event_drop_samples(); 33 34 /* 35 * Initializes audio thread monitor and sets main thread callback. 36 */ 37 int cras_audio_thread_monitor_init(); 38 39 #endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */ 40