MPD

- Main Page
- Data Structures
- Files

- File List
- Globals

# src/output_all.h

Go to the documentation of this file.

    00001 /*
    00002  * Copyright (C) 2003-2010 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
    00072 void
    00073 audio_output_all_enable_disable(void);
    00074
    00084 bool
    00085 audio_output_all_open(const struct audio_format *audio_format,
    00086                       struct music_buffer *buffer);
    00087
    00091 void
    00092 audio_output_all_close(void);
    00093
    00098 void
    00099 audio_output_all_release(void);
    00100
    00109 bool
    00110 audio_output_all_play(struct music_chunk *chunk);
    00111
    00118 unsigned
    00119 audio_output_all_check(void);
    00120
    00129 bool
    00130 audio_output_all_wait(unsigned threshold);
    00131
    00136 void
    00137 audio_output_all_pause(void);
    00138
    00142 void
    00143 audio_output_all_drain(void);
    00144
    00148 void
    00149 audio_output_all_cancel(void);
    00150
    00154 void
    00155 audio_output_all_song_border(void);
    00156
    00162 float
    00163 audio_output_all_get_elapsed_time(void);
    00164
    00165 #endif