Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Find Sound Capabilities

Keywords: 	 sound	playmedia

Question:

I am in need of determining if a sound card or sound capability (able to play a wav file) is present in a client via Winbatch. I could not find a consistent registry entry nor could I get the playmidi and playwaveform to provide me with the information.

Thanks in advance.

Answer:

There is no real real good method. Even with all the correct hardware they may have the speakers turned off and won't hear anything anyway.

My trick is to....

	ErrorMode(@OFF)
	LastError()
	PlayMedia("Status WaveForm Ready")
	ErrorMode(@CANCEL)
	if LastError()!=1193
		Message("Sound","Windows multimedia extensions present.")
	else
		Message("Sound","No sound")
	endif

Article ID:   W13217
Filename:   Find Sound Capabilities.txt