2
 System.Media.SystemSounds.Beep.Play();

That's what I use at the moment but it does not Beep on client(Windows7) within a Terminalserver/ Citrix(Windows2008).

What should I use instead?

seva titov
  • 11,720
  • 2
  • 35
  • 54
blindmeis
  • 22,175
  • 7
  • 55
  • 74
  • Try to turn on the speakers and turn up the volume. Check if *any* audio is capable of being heard. Console.Beep() is an alternative. The obvious google query is "terminal server audio playback", first hit is [this KB article](http://support.microsoft.com/kb/307071). Show your research so we don't have to point out the obvious. – Hans Passant Jan 07 '14 at 11:04
  • If you're connected via a termnial to Citrix, and you invoke Beep() on the Windows2008 box, the client won't hear it. Unless you sit (physically) next to the server. – Shai Jan 07 '14 at 11:29
  • Off-topic: that's a funny title... :) – Alex Filipovici Jan 07 '14 at 11:34

1 Answers1

0

I'd try playing a WAV file instead. You can use one of the built-in Windows system sounds and play that. Just ensure that your Citrix environment is configured to remote audio to the client.

donovan
  • 1,442
  • 9
  • 18
  • You do realise that's exactlyy what they're doing? – Joey Jan 15 '14 at 06:14
  • Going off Shai's comment I thought it might have been mapping to one of the old beep APIs that plays a tone on the motherboard (which is generally used for reporting errors at bootup). – donovan Jan 28 '14 at 22:11