PulseAudio
2.1
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
simple.h
Go to the documentation of this file.
1
#ifndef foosimplehfoo
2
#define foosimplehfoo
3
4
/***
5
This file is part of PulseAudio.
6
7
Copyright 2004-2006 Lennart Poettering
8
Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
9
10
PulseAudio is free software; you can redistribute it and/or modify
11
it under the terms of the GNU Lesser General Public License as published
12
by the Free Software Foundation; either version 2.1 of the License,
13
or (at your option) any later version.
14
15
PulseAudio is distributed in the hope that it will be useful, but
16
WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with PulseAudio; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
USA.
24
***/
25
26
#include <sys/types.h>
27
28
#include <
pulse/sample.h
>
29
#include <
pulse/channelmap.h
>
30
#include <
pulse/def.h
>
31
#include <pulse/cdecl.h>
32
#include <
pulse/version.h
>
33
112
PA_C_DECL_BEGIN
113
116
typedef
struct
pa_simple
pa_simple
;
117
119
pa_simple
*
pa_simple_new
(
120
const
char
*server,
121
const
char
*name,
122
pa_stream_direction_t
dir,
123
const
char
*dev,
124
const
char
*stream_name,
125
const
pa_sample_spec
*ss,
126
const
pa_channel_map
*map,
127
const
pa_buffer_attr
*attr,
128
int
*error
129
);
130
132
void
pa_simple_free
(
pa_simple
*s);
133
135
int
pa_simple_write
(
pa_simple
*s,
const
void
*data,
size_t
bytes,
int
*error);
136
138
int
pa_simple_drain
(
pa_simple
*s,
int
*error);
139
141
int
pa_simple_read
(
pa_simple
*s,
void
*data,
size_t
bytes,
int
*error);
142
144
pa_usec_t
pa_simple_get_latency
(
pa_simple
*s,
int
*error);
145
147
int
pa_simple_flush
(
pa_simple
*s,
int
*error);
148
149
PA_C_DECL_END
150
151
#endif
src
pulse
simple.h
Generated on Thu Aug 30 2012 14:35:35 for PulseAudio by
1.8.1.2