00001 /* 00002 * Copyright (C) 2003-2009 The Music Player Daemon Project 00003 * http://www.musicpd.org 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 /* 00021 * Functions for dealing with all configured (enabled) audion outputs 00022 * at once. 00023 * 00024 */ 00025 00026 #ifndef OUTPUT_ALL_H 00027 #define OUTPUT_ALL_H 00028 00029 #include <stdbool.h> 00030 #include <stddef.h> 00031 00032 struct audio_format; 00033 struct music_buffer; 00034 struct music_chunk; 00035 00040 void 00041 audio_output_all_init(void); 00042 00046 void 00047 audio_output_all_finish(void); 00048 00053 unsigned int audio_output_count(void); 00054 00058 struct audio_output * 00059 audio_output_get(unsigned i); 00060 00065 struct audio_output * 00066 audio_output_find(const char *name); 00067 00077 bool 00078 audio_output_all_open(const struct audio_format *audio_format, 00079 struct music_buffer *buffer); 00080 00084 void 00085 audio_output_all_close(void); 00086 00095 bool 00096 audio_output_all_play(struct music_chunk *chunk); 00097 00104 unsigned 00105 audio_output_all_check(void); 00106 00115 bool 00116 audio_output_all_wait(unsigned threshold); 00117 00122 void 00123 audio_output_all_pause(void); 00124 00128 void 00129 audio_output_all_cancel(void); 00130 00131 #endif