Chinaunix首页 | 论坛 | 博客
  • 博客访问: 818695
  • 博文数量: 125
  • 博客积分: 4066
  • 博客等级: 上校
  • 技术积分: 1401
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-03 18:58
文章分类

全部博文(125)

文章存档

2014年(1)

2013年(1)

2012年(2)

2011年(29)

2010年(92)

我的朋友

分类: LINUX

2010-06-22 11:15:42

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;


阅读(949) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~