示例#1
0
void viewfinder_set() {
	switch (DPData.ae) {
	case AE_MODE_M:
		fexp_toggle();
		break;
	case AE_MODE_P:
	case AE_MODE_TV:
	case AE_MODE_AV:
		msm_start();
		break;
	default:
		break;
	}
}
示例#2
0
文件: main.c 项目: Ferk/andLess
int audio_start(msm_ctx *ctx, int channels, int samplerate) {

    if(!ctx) return LIBLOSSLESS_ERR_NOCTX;
    switch(ctx->mode) {
        case MODE_DIRECT:
           return msm_start(ctx, channels, samplerate);
        case MODE_LIBMEDIA:
           return libmedia_start(ctx, channels, samplerate);
	case MODE_CALLBACK:
           return libmediacb_start(ctx, channels, samplerate);
        default:
           break;
    }
    return 0;
}