Hi Ignacio
No, I don't want to annoy anybody, that's why I poited out I need to
play a *sequence of beeps* rather than simply playing a *single beep*
while the tasks are running
That's why I think I should use a separate thread to play the
sequences.
I aggree with Ebbe. I should implement a queue of beep commands. The
only thing is that if several tasks produce such commands in the same
time, the human listener will hear a scrambled sound, something like a
noise, wich also may be annoying.
One solution could be to grant acces to this queue only to one task at
a time. This is fine with me. Anyway, if somebody has another solution,
that it is welcome.
No, my app will not work as a windows service. It's a "simple" win app.
Thanks.
Ignacio Machin ( .NET/ C# MVP ) a scris:
Quote:
Hi,
>
>
"adi" <adrian.rotaru@ikonsoft.rowrote in message
news:1166689906.119271.251210@79g2000cws.googlegro ups.com...
Quote:
Hi
The sound should be a sequence of beeps.
>
You can use the Beep function fron the win API
>
Quote:
Just a
single beep could be anoying for the human listener.
>
So, you want to annoy somebody? :)
>
Quote:
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?
Yes it should be
>
>
btw, is your app running as a win service?