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 {
45 output_version_type version;
46
50 const char *name;
51
55 const char *author;
56
61 output_init_type init;
62
69 output_open_type open;
70
74 output_close_type close;
75
84 output_write_type write;
85
91 output_start_callbacks_type start_callbacks;
92
104 output_set_buffer_type set_buffer;
105
112 output_set_sample_rate_type set_sample_rate;
113
118 output_get_queue_count_type get_queue_count;
119
124 output_get_latency_type get_latency;
125 } output_plugin;
126
127 typedef output_plugin*(*output_plugin_info_type)(void);
128
129 #endif
_output_plugin::set_sample_rate
output_set_sample_rate_type set_sample_rate
Definition: output_plugin.h:112
_output_plugin::write
output_write_type write
Definition: output_plugin.h:84
output_set_sample_rate_type
unsigned int(* output_set_sample_rate_type)(unsigned int rate)
Definition: output_plugin.h:36
_output_plugin::init
output_init_type init
Definition: output_plugin.h:61
_output_plugin::set_buffer
output_set_buffer_type set_buffer
Definition: output_plugin.h:104
output_get_queue_count_type
int(* output_get_queue_count_type)(void)
Definition: output_plugin.h:37
output_set_buffer_type
int(* output_set_buffer_type)(int *frag_size, int *frag_count, int *channels)
Definition: output_plugin.h:35
output_close_type
void(* output_close_type)(void)
Definition: output_plugin.h:32
_output_plugin::start_callbacks
output_start_callbacks_type start_callbacks
Definition: output_plugin.h:91
_output_plugin::version
output_version_type version
Definition: output_plugin.h:45
output_start_callbacks_type
int(* output_start_callbacks_type)(void *data)
Definition: output_plugin.h:34
_output_plugin
Definition: output_plugin.h:40
_output_plugin::name
const char * name
Definition: output_plugin.h:50
output_plugin
struct _output_plugin output_plugin
output_get_latency_type
int(* output_get_latency_type)(void)
Definition: output_plugin.h:38
_output_plugin::get_queue_count
output_get_queue_count_type get_queue_count
Definition: output_plugin.h:118
output_version_type
int output_version_type
Definition: output_plugin.h:29
_output_plugin::open
output_open_type open
Definition: output_plugin.h:69
output_write_type
int(* output_write_type)(void *data, int byte_count)
Definition: output_plugin.h:33
output_init_type
int(* output_init_type)(void)
Definition: output_plugin.h:30
output_open_type
int(* output_open_type)(const char *path)
Definition: output_plugin.h:31
_output_plugin::author
const char * author
Definition: output_plugin.h:55
_output_plugin::get_latency
output_get_latency_type get_latency
Definition: output_plugin.h:124
_output_plugin::close
output_close_type close
Definition: output_plugin.h:74