C#/WPF and Internal Speaker
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hello,
This is for a WPF (3.5) application.
We have a requirement to produce sounds on an internal speaker (in the case
that no external sound device is available).
I know of Console.Beep(frequency, duration), but I wondered if there is a
better, more controllable way. Basically, the user will be toggling a
(hardware) switch on and off. When it is on, we need to play a tone, and
when it's off, we need to stop playing the tone.
We can use a series of short Beeps, but there will be a gap between each
beep, and the beep will need to run its entire duration (in other words, it
won't stop immediately when the switch is turned off).
Thanks,
WtS
.
Relevant Pages
- Re: Continuous Sound
... Using the Beep ... > function makes it beep for a FIXED amount of time. ... Beep in a for loop for the duration you want. ... This has an effect on the quality of the tone, ... (microsoft.public.vb.general.discussion) - Re: OT - PC makes odd beeping sound
... to do with the soundcard. ... because on every version of OE I've ever used, the beep is the default ... and you have to switch it off. ... My understanding is that OE is playing a sound via the ... (uk.media.tv.misc) - Re: switching off beep for the system[SOLVED] bullshit!
... I found how to switch off the beep for a user, I did not find how to ... The pcspkr module was not loaded by default and I had to add it to /etc/sysconfig/modules/ to get the beep when I wanted it (note that your opinion about the usefulness/uselessness of the module is just that: ... Clemson University Math Sciences ... (Fedora) - spontaneous use of BB1.5 open source code
... I was sitting in a train with my laptop and did some ... Switching off the loadspeakers also did not stop the beep. ... variable to switch beeping on and off and a command to toggle the ... Best regards and thanks to Oberon microsystems for the sources and the ... (comp.lang.oberon) - Re: spontaneous use of BB1.5 open source code
... Just recently I had a very positive experience regarding BlackBox 1.5 Beta, ... Switching off the loadspeakers also did not stop the beep. ... variable to switch beeping on and off and a command to toggle the ... Best regards and thanks to Oberon microsystems for the sources and the structure ... (comp.lang.oberon) |
|