00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
#ifndef __ALSA_OUTPUT_H
00029
#define __ALSA_OUTPUT_H
00030
00031
#ifdef __cplusplus
00032
extern "C" {
00033
#endif
00034
00054 typedef struct _snd_output
snd_output_t;
00055
00057 typedef enum _snd_output_type {
00059
SND_OUTPUT_STDIO,
00061
SND_OUTPUT_BUFFER
00062 }
snd_output_type_t;
00063
00064
int snd_output_stdio_open(snd_output_t **outputp,
const char *file,
const char *mode);
00065
int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp,
int _close);
00066
int snd_output_buffer_open(snd_output_t **outputp);
00067 size_t
snd_output_buffer_string(snd_output_t *output,
char **buf);
00068
int snd_output_close(snd_output_t *output);
00069
int snd_output_printf(snd_output_t *output,
const char *format, ...)
00070 #ifndef DOC_HIDDEN
00071 __attribute__ ((format (printf, 2, 3)))
00072 #endif
00073 ;
00074
int snd_output_vprintf(snd_output_t *output,
const char *format, va_list args);
00075
int snd_output_puts(snd_output_t *output,
const char *str);
00076
int snd_output_putc(snd_output_t *output,
int c);
00077
int snd_output_flush(snd_output_t *output);
00078
00081
#ifdef __cplusplus
00082
}
00083
#endif
00084
00085
#endif
00086