snd_output_t *output
typedef struct _snd_output snd_output_t;
struct _snd_output {
snd_output_type_t type;
const snd_output_ops_t *ops;
void *private_data;
};
/** Output type. */
typedef enum _snd_output_type {
/** Output to a stdio stream. */
SND_OUTPUT_STDIO,
/** Output to a memory buffer. */
SND_OUTPUT_BUFFER
} snd_output_type_t;
typedef struct _snd_output_ops {
int (*close)(snd_output_t *output);
int (*print)(snd_output_t *output, const char *format, va_list args);
int (*puts)(snd_output_t *output, const char *str);
int (*putch)(snd_output_t *output, int c);
int (*flush)(snd_output_t *output);
} snd_output_ops_t;
阅读(998) | 评论(0) | 转发(0) |