Beispiel #1
0
	/**
	 *  @alsymbols
	 *  @alcfunref{CreateContext}
	 */
	Context(const Device& device)
	 : ContextOps(
		device._device,
		OALPLUS_ALCFUNC(CreateContext)(device._device, nullptr)
	)
	{
		OALPLUS_CHECK_SIMPLE_ALC(_device, CreateContext);
	}
Beispiel #2
0
	/**
	 *  @alsymbols
	 *  @alcfunref{CreateContext}
	 */
	Context(
		const Device& device,
		const FinishedContextAttribs& attribs
	): ContextOps(
		device._device,
		OALPLUS_ALCFUNC(CreateContext)(
			device._device,
			attribs.Get()
		)
	)
	{
		OALPLUS_CHECK_SIMPLE_ALC(_device, CreateContext);
	}
Beispiel #3
0
	/**
	 *  @alsymbols
	 *  @alcfunref{OpenDevice}
	 */
	Device(const ALchar* dev_spec)
	 : DeviceOps(OALPLUS_ALCFUNC(OpenDevice)(dev_spec))
	{
		OALPLUS_CHECK_SIMPLE_ALC(_device,OpenDevice);
	}
Beispiel #4
0
	/**
	 *  @alsymbols
	 *  @alcfunref{OpenDevice}
	 */
	Device(void)
	 : DeviceOps(OALPLUS_ALCFUNC(OpenDevice)(nullptr))
	{
		OALPLUS_CHECK_SIMPLE_ALC(_device,OpenDevice);
	}