Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
vis_runner.h
Go to the documentation of this file.
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 #include <libaudcore/core.h>
00026 
00027 /* When the decoder thread wants to send data to the vis runner, it must block
00028  * the vis timeout before blocking output functions; otherwise, the vis timeout
00029  * will hang up waiting for those output functions to be unblocked while the
00030  * decoder thread hangs up waiting for the vis timeout to finish. */
00031 void vis_runner_lock (void);
00032 void vis_runner_unlock (void);
00033 bool_t vis_runner_locked (void);
00034 
00035 void vis_runner_start_stop (bool_t playing, bool_t paused);
00036 void vis_runner_pass_audio (int time, float * data, int samples, int
00037  channels, int rate);
00038 void vis_runner_time_offset (int offset);
00039 void vis_runner_flush (void);
00040 
00041 void vis_runner_enable (bool_t enable);
00042 
00043 #endif