Sha256: e2c1380000a12a4e2799a746768b6d883d3a2484411681f36b2161abc88f479f

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

#include "../beeps.h"


#include <mfapi.h>
#include <xot/windows.h>
#include "exception.h"


namespace Beeps
{


	void
	Beeps_init ()
	{
		check_media_foundation_error(
			CoInitializeEx(NULL, COINIT_MULTITHREADED),
			__FILE__, __LINE__);

		check_media_foundation_error(
			MFStartup(MF_VERSION, MFSTARTUP_NOSOCKET),
			__FILE__, __LINE__);
	}

	void
	Beeps_fin ()
	{
		check_media_foundation_error(
			MFShutdown(),
			__FILE__, __LINE__);

		CoUninitialize();
	}


}// Beeps

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beeps-0.3 src/win32/beeps.cpp