Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
vis_runner.h
Go to the documentation of this file.
1 /*
2  * vis_runner.h
3  * Copyright 2009-2010 John Lindgren
4  *
5  * This file is part of Audacious.
6  *
7  * Audacious is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, version 3 of the License.
10  *
11  * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13  * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * Audacious. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * The Audacious team does not consider modular code linking to Audacious or
19  * using our public API to be a derived work.
20  */
21 
22 #ifndef AUD_VIS_RUNNER_H
23 #define AUD_VIS_RUNNER_H
24 
25 #include <libaudcore/core.h>
26 
27 /* When the decoder thread wants to send data to the vis runner, it must block
28  * the vis timeout before blocking output functions; otherwise, the vis timeout
29  * will hang up waiting for those output functions to be unblocked while the
30  * decoder thread hangs up waiting for the vis timeout to finish. */
31 void vis_runner_lock (void);
32 void vis_runner_unlock (void);
34 
36 void vis_runner_pass_audio (int time, float * data, int samples, int
37  channels, int rate);
38 void vis_runner_time_offset (int offset);
39 void vis_runner_flush (void);
40 
41 void vis_runner_enable (bool_t enable);
42 
43 #endif