Exemplo n.º 1
0
void xmp_init_callback(xmp_context ctx, void (*callback) (void *, int))
{
	struct xmp_options *o = &((struct xmp_context *)ctx)->o;

	xmp_drv_register(&drv_callback);
	xmp_init_formats(ctx);
	pw_init();

	xmp_register_driver_callback(ctx, callback);

	o->drv_id = "callback";
}
void xmp_init(xmp_context ctx, int argc, char **argv)
{
	struct xmp_player_context *p = &((struct xmp_context *)ctx)->p;
	int num;

	xmp_init_formats(ctx);
	pw_init();

	p->event_callback = NULL;

	/* must be parsed before loading the rc file. */
	for (num = 1; num < argc; num++) {
		if (!strcmp(argv[num], "--norc"))
			break;
	}
	if (num >= argc)
		_xmp_read_rc((struct xmp_context *)ctx);
}
Exemplo n.º 3
0
void xmp_init(xmp_context ctx, int argc, char **argv)
{
	int num;

	xmp_init_drivers();
	xmp_init_formats(ctx);
	pw_init();

	xmp_event_callback = NULL;

	/* must be parsed before loading the rc file. */
	for (num = 1; num < argc; num++) {
		if (!strcmp(argv[num], "--norc"))
			break;
	}
	if (num >= argc)
		xmpi_read_rc((struct xmp_context *)ctx);

	xmpi_tell_wait();
}