ao_example.c

来自「DawnLightPlayer,一个新的基于ffmpeg的全功能播放器」· C语言 代码 · 共 54 行

C
54
字号
/********************************************** * Dawn Light Player * *   ao_example.c * * Created by kf701 * 12:09:41 03/02/08 CST * * $Id: ao_example.c 168 2008-03-21 02:50:01Z kf701 $ **********************************************/#if ENABLE_AO_NULL#include <stdio.h>#include "avoutput.h"static int ao_null_init(void){	return 0;}static int ao_null_uninit(void){	return 0;}static void ao_null_play(AVSample *s){}static int ao_null_control(int cmd, void *arg){	switch (cmd)	{	default:		av_log(NULL, AV_LOG_ERROR, "AO NULL not support control now!\n");		break;	}	return 0;}ao_t ao_null ={	.id = AO_ID_EXAMPLE,	.name = "null",	.ao_init = ao_null_init,	.ao_uninit = ao_null_uninit,	.ao_play = ao_null_play,	.ao_getspace = NULL,	.ao_control = ao_null_control,};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?