C++程序  |  35行  |  817 B

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

/*
 * Notifies the main thread when a busyloop event happens.
 */
int cras_audio_thread_busyloop();

/*
 * Notifies the main thread when a underrun event happens.
 */
int cras_audio_thread_underrun();

/*
 * Notifies the main thread when a severe underrun event happens.
 */
int cras_audio_thread_severe_underrun();

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

#endif /* CRAS_AUDIO_THREAD_MONITOR_H_ */