AlsaPlayer
0.99.81
Main Page
Data Structures
Files
File List
Globals
alsaplayer
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
Generated by
1.8.3.1