A
adi
Hi
My application has many automatic features because it is designed to
run without any user interfering.
In fact, my app will work on a system without a keyboard or a mouse.
Anyway, from time to time, the app will perform some tasks. When
running certain critical tasks I need to play some speaker sounds while
they are processing. The sound should be a sequence of beeps. Just a
single beep could be anoying for the human listener.
On the other hand, the tasks will be performed on a random basis and
will take an impossible to determine period of time.
Should I use threads to play these sounds? I so, I fall in another
problem. What if 2 or more tasks will be started at the same time? Is
API's Beep() function thread safe?
It's a problem of design, too.
Any ideea will be appreciated
Thanks.
My application has many automatic features because it is designed to
run without any user interfering.
In fact, my app will work on a system without a keyboard or a mouse.
Anyway, from time to time, the app will perform some tasks. When
running certain critical tasks I need to play some speaker sounds while
they are processing. The sound should be a sequence of beeps. Just a
single beep could be anoying for the human listener.
On the other hand, the tasks will be performed on a random basis and
will take an impossible to determine period of time.
Should I use threads to play these sounds? I so, I fall in another
problem. What if 2 or more tasks will be started at the same time? Is
API's Beep() function thread safe?
It's a problem of design, too.
Any ideea will be appreciated
Thanks.