Ken Takata wrote:
> > Is that doable? > > I think it is possible, but the problem is that PlaySound() cannot > stop the sounds individually. > It can stop all the sounds only. Another way is playing only one sound > at once. If there is a new call of PlaySound(), stop the old sound. I would think that aborting a single sound is unusual, while having two overlapping sounds is common. I assume the system sounds are fairly short anyway. Stopping a sound file would be more common, e.g. if you have an alarm clock sound or ringtone. One thing to keep in mind: If the sound plays in a separate thread, invoking the callback needs to be done in the main thread, thus it needs to use some safe inter-thread flag. Invoking the callback from another thread might break just about anything. -- hundred-and-one symptoms of being an internet addict: 156. You forget your friend's name but not her e-mail address. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201906112029.x5BKTRg3013332%40masaka.moolenaar.net. For more options, visit https://groups.google.com/d/optout.
