Daily Evil

I maintain a paper diary so this place is not much use to me except that like most social aliens, one can observe my peculiar behaviour when close to high-frequency electromagnetic devices.

So today I'm spending my meaningless life at the computer lab and someone comes along with a teapot. Some students are taking 3D modelling courses so I thought that this person was just going to reinvent the wheel. I was wrong, this was the kind of person very attentive to his own comfort: he proceeded to play jazz with the computer's built in speakers, loud. Listening to music is tolerated while working err... *cough* noding *cough* in the lab, people bring headphones with them. My primitive instincts got the better of me; I whipped the following out:

int WINAPI WinMain(HINSTANCE hIns, HINSTANCE hPrev, LPSTR Cmd, int nCmdShow)
	int cx = 0;
	unsigned int i, wav;

	wav = waveOutGetNumDevs();
	while (cx < 4) {
		for (i = 0; i < wav; i++) {
			waveOutGetVolume((HWAVEOUT) i, &mem);
			if (mem) {
				waveOutSetVolume((HWAVEOUT) i, (cx == 4)?0xFFFF:0;
		Sleep(10 * 1000);

It basically keeps the volume set to zero; if you change the settings it explodes in your face; the joy of evil ;)