Exemplo n.º 1
0
static int effect_init(void)
{
	int err;
	err  = ausrc_register(&ausrc, "effect", src_alloc);
	err |= auplay_register(&auplay, "effect", play_alloc);

	return err;
}
Exemplo n.º 2
0
static int module_init(void)
{
	int err;

	err  = ausrc_register(&ausrc, "oss", src_alloc);
	err |= auplay_register(&auplay, "oss", play_alloc);

	return err;
}
Exemplo n.º 3
0
static int sndio_init(void)
{
	int err = 0;

	err |= ausrc_register(&ausrc, "sndio", src_alloc);
	err |= auplay_register(&auplay, "sndio", play_alloc);

	return err;
}
Exemplo n.º 4
0
static int module_init(void)
{
	int err;

	err  = auplay_register(&auplay, "coreaudio", coreaudio_player_alloc);
	err |= ausrc_register(&ausrc, "coreaudio", coreaudio_recorder_alloc);

	return err;
}
Exemplo n.º 5
0
int rst_audio_init(void)
{
	int err;

	err = mpg123_init();
	if (err != MPG123_OK) {
		warning("rst: mpg123_init: %s\n", mpg123_plain_strerror(err));
		return ENODEV;
	}

	return ausrc_register(&ausrc, baresip_ausrcl(), "rst", alloc_handler);
}
Exemplo n.º 6
0
static int mod_gst_init(void)
{
	gchar *s;

	gst_init(0, NULL);

	s = gst_version_string();

	info("gst: init: %s\n", s);

	g_free(s);

	return ausrc_register(&ausrc, baresip_ausrcl(), "gst", gst_alloc);
}
Exemplo n.º 7
0
static int ww_init(void)
{
	int err;

	play_dev_count = waveOutGetNumDevs();
	DEBUG_INFO("ww_init: %d output devices found\n", play_dev_count);
	src_dev_count = waveInGetNumDevs();
	DEBUG_INFO("ww_init: %d input devices found\n", src_dev_count);

	err  = ausrc_register(&ausrc, "winwave", src_alloc);
	err |= auplay_register(&auplay, "winwave", play_alloc);

	return err;
}
Exemplo n.º 8
0
static int mod_gst_init(void)
{
	gchar *s;

	gst_init(0, NULL);

	s = gst_version_string();

	DEBUG_NOTICE("init: %s\n", s);

	g_free(s);

	return ausrc_register(&ausrc, "gst", gst_alloc);
}
Exemplo n.º 9
0
static int ww_init(void)
{
	int play_dev_count, src_dev_count;
	int err;

	play_dev_count = waveOutGetNumDevs();
	src_dev_count = waveInGetNumDevs();

	re_printf("winwave: output devices: %d, input devices: %d\n",
		  play_dev_count, src_dev_count);

	err  = ausrc_register(&ausrc, "winwave", winwave_src_alloc);
	err |= auplay_register(&auplay, "winwave", winwave_play_alloc);

	return err;
}
Exemplo n.º 10
0
static int module_init(void)
{
	return ausrc_register(&ausrc, "aufile", alloc_handler);
}