WAVEOUT plugin may use Windows events instead of pthread
By looking the source of this plugin, perhaps instead of declaring two mutex and a cond pthread objects, it would be better to use two CRITICAL_SECTION and an HANDLE returned by CreateEvent().
I think that it would be better to declare also blocks_free with volatile keyword, it should made safer the WaveOut::period_wait ().
#2 Updated by Carlo Bramini almost 2 years ago
John Lindgren wrote:
"Better" why? Are you having problems with the current code?
No, I have no problems with current code, I was just thinking that the same thing could be made with genuine WIN32 functions, since this plugin will run only on Windows and nothing else. That's why I was thinking on it as an improvement.