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 * The non-empty audio state handler is used to send a DBus signal when the 6 * system-level non-empty audio state changes. 7 * 8 * cras_non_empty_audio_msg() is called from audio thread to update the 9 * non-empty audio state in the main thread, which in turn sends the DBus 10 * signal. 11 * 12 * cras_non_empty_audio_handler_init() is used to setup the message handler 13 * in the main thread to handle the non-empty audiomessage from audio thread. 14 */ 15 16 #ifndef CRAS_NON_EMPTY_AUDIO_HANDLER_H_ 17 #define CRAS_NON_EMPTY_AUDIO_HANDLER_H_ 18 19 /* Send non-empty audio state message. */ 20 int cras_non_empty_audio_send_msg(int32_t non_empty); 21 22 /* Initialize non-empty audio handler. */ 23 int cras_non_empty_audio_handler_init(); 24 25 #endif /* CRAS_NON_EMPTY_AUDIO_HANDLER_H_ */ 26