safe_ptr<core::frame_consumer> create_consumer(const core::parameters& params)
{
	if(params.size() < 1 || params[0] != L"AUDIO")
		return core::frame_consumer::empty();

	return make_safe<oal_consumer>();
}
Пример #2
0
safe_ptr<core::frame_consumer> create_ivga_consumer(const core::parameters& params)
{
	if(params.size() < 1 || params[0] != L"NEWTEK_IVGA")
		return core::frame_consumer::empty();
		
	const auto channel_layout = core::default_channel_layout_repository()
		.get_by_name(
			params.get(L"CHANNEL_LAYOUT", L"STEREO"));

	return make_safe<newtek_ivga_consumer>(channel_layout);
}