Playsound sometimes ... and somtimes NOT

 
In OnTimer - every three minutes - I do  this code
ResetLastError();
if(PlaySound("tick.wav"))
	Print(__FUNCTION__+" Playsound true " + GetLastError());
else
	Print(__FUNCTION__+" Playsound false " + GetLastError());

The PRINT always gives "Playsound true 0 " 

Even if I let the programme run without intervention, the sound is sometimes heard, very often not.
What is that?

(MT5 just reinstalled)
OOP in MQL5 by Example: Processing Warning and Error Codes
OOP in MQL5 by Example: Processing Warning and Error Codes
  • www.mql5.com
The article describes an example of creating a class for working with the trade server return codes and all the errors that occur during the MQL-program run. Read the article, and you will learn how to work with classes and objects in MQL5. At the same time, this is a convenient tool for handling errors; and you can further change this tool according to your specific needs.
 
Willbur the sound is sometimes heard, very often not.

"Tick.wav" is a low volume, short file. You are just not paying attention. Switch to "Alert.wav" and you'll hear.

 
Willbur:
In OnTimer - every three minutes - I do  this code

The PRINT always gives "Playsound true 0 " 

Even if I let the programme run without intervention, the sound is sometimes heard, very often not.
What is that?

(MT5 just reinstalled)
I wish you were right.  But it's not that simple.

It's even stranger:
I have two devices - a Dell desktop and a Lenovo laptop.
On the Dell desktop everything is ok.
The error happens only on the laptop!
 
Willbur #:
I wish you were right.  But it's not that simple.

It's even stranger:
I have two devices - a Dell desktop and a Lenovo laptop.
On the Dell desktop everything is ok.
The error happens only on the laptop!

check your device drivers are upto date

 
Willbur #:
I wish you were right.  But it's not that simple.

It's even stranger:
I have two devices - a Dell desktop and a Lenovo laptop.
On the Dell desktop everything is ok.
The error happens only on the laptop!

Check the volume sliders in "Volume mixer"

Reason: