[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
NqcPlaySound

(NQC) PlaySound

Function that plays one of six predefined sounds. To play any single tone, use PlayTone.

//Sytax
PlaySound( [SoundIndex] );


The six predefined sounds are:
  • 0 : Key click
  • 1 : Beep beep
  • 2 : Decreasing frequency sweep
  • 3 : Increasing frequency sweep
  • 4 : Buhhh error sound
  • 5 : Fast increasing sweep
The SoundIndex must be a constant.

Example

Plays all six sounds.

task main()
{
  PlaySound(0); Wait(100);
  PlaySound(1); Wait(100);
  PlaySound(2); Wait(100);
  PlaySound(3); Wait(100);
  PlaySound(4); Wait(100);
  PlaySound(5); Wait(100);
}


Code links



last edited (November 11, 2007) by bilderbikkel, Number of views: 639, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.