Sound Latency

BlitzMax Forums/BlitzMax Programming/Sound Latency

I have a professional soundcard so I doubt that is the issue.

I've played with the C code and found that a buffer size of 4096 is just right.
struct winmmdevice:audiodevice
{
	HWAVEOUT	device; 
	int 		buffersize;
	abuffer 	buffer[2];
	int 		bnum;
	int 		mode;			//0=8bit 1=16bit
	int 		playing;

	int reset()
	{
		int sz=4096;
		mix=new mixer(sz);
		device=0;
		buffersize=0;
		bnum=0;
		mode=0;
		playing=0;
		return init(44100,2,16,sz);
	}


Chances are your customers won't notice it as much as you. It may not even be a problem at all for many of them.


It was the testers who noticed it first.