User Tools

Site Tools


c:dos.h:sound
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:dos.h:sound [2013/02/03 13:36] (current)
158.181.88.241 created
Line 1: Line 1:
 +
 +====== sound ======
 +<code c>
 +void sound( unsigned int );
 +</code>
 +
 +===== description of sound =====
 +Producessound of a specified frequency.\\
 +mostly used for adding music to c program\\
 +random values and delay needed to make some strange sounds.\\
 +
 +<code c>
 +#include<stdio.h>
 +#include<dos.h>
 +
 +int main(void)
 +{
 +   int i;
 +   for ( i = 42 ; i <= 4200 ; i ++  )
 +   {
 +      i = i + rand(100);
 +      sound(i);
 +      delay(50);
 +   }
 +   nosound();
 +
 +   return 0;
 +}
 +</code>
 +
 +==== output of sound c example ====
 +    Strange sounds 
  
advertising
c/dos.h/sound.txt · Last modified: 2013/02/03 13:36 by 158.181.88.241

Impressum