alsa-lib/include/output.h

30 lines
901 B
C
Raw Normal View History

2001-01-17 11:00:32 +00:00
2001-03-25 14:13:55 +00:00
/** Output handle */
2001-01-17 11:00:32 +00:00
typedef struct _snd_output snd_output_t;
2001-03-25 14:13:55 +00:00
/** Output type */
typedef enum _snd_output_type {
/** Output to a stdio stream */
2001-01-17 11:00:32 +00:00
SND_OUTPUT_STDIO,
2001-03-25 14:13:55 +00:00
/** Output to a memory buffer */
2001-01-17 11:00:32 +00:00
SND_OUTPUT_BUFFER,
2001-03-25 14:13:55 +00:00
} snd_output_type_t;
2001-01-17 11:00:32 +00:00
2001-02-01 07:52:30 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2001-03-29 17:50:28 +00:00
int snd_output_stdio_open(snd_output_t **outputp, const char *file, const char *mode);
int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int _close);
2001-01-17 11:00:32 +00:00
int snd_output_buffer_open(snd_output_t **outputp);
size_t snd_output_buffer_string(snd_output_t *output, char **buf);
int snd_output_close(snd_output_t *output);
int snd_output_printf(snd_output_t *output, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
int snd_output_puts(snd_output_t *output, const char *str);
int snd_output_putc(snd_output_t *output, int c);
int snd_output_flush(snd_output_t *output);
2001-01-29 08:29:52 +00:00
#ifdef __cplusplus
}
#endif