Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
00001 /* 00002 * vis_runner.h 00003 * Copyright 2009-2010 John Lindgren 00004 * 00005 * This file is part of Audacious. 00006 * 00007 * Audacious is free software: you can redistribute it and/or modify it under 00008 * the terms of the GNU General Public License as published by the Free Software 00009 * Foundation, version 3 of the License. 00010 * 00011 * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY 00012 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00013 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with 00016 * Audacious. If not, see <http://www.gnu.org/licenses/>. 00017 * 00018 * The Audacious team does not consider modular code linking to Audacious or 00019 * using our public API to be a derived work. 00020 */ 00021 00022 #ifndef AUD_VIS_RUNNER_H 00023 #define AUD_VIS_RUNNER_H 00024 00025 /* When the decoder thread wants to send data to the vis runner, it must block 00026 * the vis timeout before blocking output functions; otherwise, the vis timeout 00027 * will hang up waiting for those output functions to be unblocked while the 00028 * decoder thread hangs up waiting for the vis timeout to finish. */ 00029 void vis_runner_lock (void); 00030 void vis_runner_unlock (void); 00031 gboolean vis_runner_locked (void); 00032 00033 void vis_runner_start_stop (gboolean playing, gboolean paused); 00034 void vis_runner_pass_audio (gint time, gfloat * data, gint samples, gint 00035 channels, gint rate); 00036 void vis_runner_time_offset (gint offset); 00037 void vis_runner_flush (void); 00038 00039 #endif