This shows you the differences between two versions of the page.
| — |
c:dos.h:nosound [2024/02/16 01:06] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== nosound ====== | ||
| + | <code c> | ||
| + | void nosound( void ); | ||
| + | </code> | ||
| + | |||
| + | ===== description of nosound ===== | ||
| + | turn off the PC speaker. | ||
| + | |||
| + | <code c> | ||
| + | #include<stdio.h> | ||
| + | #include<dos.h> | ||
| + | |||
| + | int main(void) | ||
| + | { | ||
| + | sound(400); | ||
| + | delay(1000); | ||
| + | nosound(); | ||
| + | |||
| + | return 0; | ||
| + | } | ||
| + | |||
| + | </code> | ||
| + | |||
| + | ==== output of nosound c example ==== | ||
| + | silence :D | ||