AlsaPlayer  0.99.81
output_plugin.h
Go to the documentation of this file.
1 /* output_plugin.h
2  * Copyright (C) 1999-2002 Andy Lo A Foe <andy@alsaplayer.org>
3  *
4  * This file is part of AlsaPlayer.
5  *
6  * AlsaPlayer is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * AlsaPlayer is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see <http://www.gnu.org/licenses/>.
18  *
19  * $Id: output_plugin.h 1344 2010-11-07 20:38:05Z dominique_libre $
20  *
21  */
22 
23 #ifndef __output_plugin_h__
24 #define __output_plugin_h__
25 
26 #define OUTPUT_PLUGIN_BASE_VERSION 0x1000
27 #define OUTPUT_PLUGIN_VERSION (OUTPUT_PLUGIN_BASE_VERSION + 6)
28 
29 typedef int output_version_type;
30 typedef int(*output_init_type)(void);
31 typedef int(*output_open_type)(const char *path);
32 typedef void(*output_close_type)(void);
33 typedef int(*output_write_type)(void *data, int byte_count);
34 typedef int(*output_start_callbacks_type)(void *data);
35 typedef int(*output_set_buffer_type)(int *frag_size, int *frag_count, int *channels);
36 typedef unsigned int(*output_set_sample_rate_type)(unsigned int rate);
37 typedef int(*output_get_queue_count_type)(void);
38 typedef int(*output_get_latency_type)(void);
39 
40 typedef struct _output_plugin
41 {
46 
50  const char *name;
51 
55  const char *author;
56 
62 
70 
75 
85 
92 
105 
113 
119 
126 
127 typedef output_plugin*(*output_plugin_info_type)(void);
128 
129 #endif
struct _output_plugin output_plugin
int(* output_get_latency_type)(void)
Definition: output_plugin.h:38
unsigned int(* output_set_sample_rate_type)(unsigned int rate)
Definition: output_plugin.h:36
int(* output_init_type)(void)
Definition: output_plugin.h:30
int(* output_get_queue_count_type)(void)
Definition: output_plugin.h:37
int(* output_write_type)(void *data, int byte_count)
Definition: output_plugin.h:33
int output_version_type
Definition: output_plugin.h:29
int(* output_set_buffer_type)(int *frag_size, int *frag_count, int *channels)
Definition: output_plugin.h:35
int(* output_start_callbacks_type)(void *data)
Definition: output_plugin.h:34
int(* output_open_type)(const char *path)
Definition: output_plugin.h:31
void(* output_close_type)(void)
Definition: output_plugin.h:32
Definition: output_plugin.h:41
output_write_type write
Definition: output_plugin.h:84
output_get_queue_count_type get_queue_count
Definition: output_plugin.h:118
output_init_type init
Definition: output_plugin.h:61
const char * author
Definition: output_plugin.h:55
output_set_buffer_type set_buffer
Definition: output_plugin.h:104
output_start_callbacks_type start_callbacks
Definition: output_plugin.h:91
const char * name
Definition: output_plugin.h:50
output_set_sample_rate_type set_sample_rate
Definition: output_plugin.h:112
output_version_type version
Definition: output_plugin.h:45
output_get_latency_type get_latency
Definition: output_plugin.h:124
output_close_type close
Definition: output_plugin.h:74
output_open_type open
Definition: output_plugin.h:69