return ((MPlayer*)p)->render();
}
-#define AUDIOBUFFER_SIZE (4096*2)
+#define AUDIOBUFFER_SIZE (1024*32)
int MPlayer::render() {
int result = -1;
#include <windows.h>
#endif
-#define BUFFER_ROUND_SIZE 128 /* -_-? */
+#define BUFFER_ROUND_SIZE 16 /* -_-? */
static const ao_info_t info =
{
ao_data.outburst = 512 * channels * samplesize;
// A "buffer" for about 0.2 seconds of audio
ao_data.buffersize = (int)(rate * 0.1 / 256 + 1) * ao_data.outburst;
+ ao_data.buffersize = 1024 * 12; /* -_-? */
ao_data.channels=channels;
ao_data.samplerate=rate;
ao_data.format=format;
int real_space;
int rounded_buffer;
drain();
- rounded_buffer = (buffer - BUFFER_ROUND_SIZE/2) / BUFFER_ROUND_SIZE
+ rounded_buffer = (buffer + BUFFER_ROUND_SIZE/2) / BUFFER_ROUND_SIZE
* BUFFER_ROUND_SIZE;
virt_space = ao_data.buffersize - rounded_buffer;
real_space = ao_pcm_buffersize - ao_outputpos;
+ /*
mp_msg (MSGT_AO, MSGL_INFO, "vir space %d, real space %d",
virt_space, real_space);
+ */
if (virt_space > real_space) return real_space;
else return virt_space;
}
}else{
type= MP_IMGTYPE_IP;
}
- mp_msg(MSGT_DECVIDEO, MSGL_DBG2, type== MP_IMGTYPE_IPB ? "using IPB\n" : "using IP\n");
+/* mp_msg(MSGT_DECVIDEO, MSGL_DBG2, type== MP_IMGTYPE_IPB ? "using IPB\n" : "using IP\n"); */
}
if (ctx->best_csp == IMGFMT_RGB8 || ctx->best_csp == IMGFMT_BGR8)
avctx->hurry_up=(flags&3)?((flags&2)?2:1):0;
- mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "vd_ffmpeg data: %04x, %04x, %04x, %04x\n",
+/* mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "vd_ffmpeg data: %04x, %04x, %04x, %04x\n",
((int *)data)[0], ((int *)data)[1], ((int *)data)[2], ((int *)data)[3]);
+ */
av_init_packet(&pkt);
pkt.data = data;
pkt.size = len;
// flag 256 means: libvo driver does its timing (dvb card)
if (*time_frame > 0.001 && !(vo_flags&256)) {
+ /*
mp_msg(MSGT_CPLAYER,MSGL_INFO,"timing_sleep %f", *time_frame);
+ */
*time_frame = timing_sleep(*time_frame);
}
return frame_time_remaining;
int frame_time_remaining = con->frame_time_remaining;
vout_time_usage += (GetTimer() - con->t2) * 0.000001;
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"vout time %u\n", vout_time_usage);
+/* mp_msg(MSGT_CPLAYER,MSGL_INFO,"vout time %u\n", vout_time_usage); */
if (mpctx->sh_video) {
edl_decision = 0;
}
- mp_msg(MSGT_GLOBAL,MSGL_V,"EOF code: %d \n",mpctx->eof);
+/* mp_msg(MSGT_GLOBAL,MSGL_V,"EOF code: %d \n",mpctx->eof); */
goto_next_file: // don't jump here after ao/vo/getch initialization!
return 0;