Displaying 1 result from an estimated 1 matches for "param_through".
2011 Jan 15
5
Wave audio problem
I have some problems with wave audio in Wine. It sais that my device does not support any format at all. I run the following
Code:
#include <windows.h>
#include <cstdio>
typedef int (*EnumDevicesCallback)(const WAVEOUTCAPS* caps,void* param_through);
int enumDevices(EnumDevicesCallback onDevice,void* param_through)
	{
	unsigned int n_devs=waveOutGetNumDevs();
	unsigned int i=0;
	WAVEOUTCAPS caps;
	do
		{
		waveOutGetDevCaps(i,&caps,sizeof(caps));
		if(!onDevice(&caps,param_through))
			{return i;}
		i++;
		}
	while(i!=n_devs);
	ret...