How to make a sound program with C language

Problem:  How to make a sound program with C language.

Solution

Sound is necessary for any programming language. When you make a game with C language , you need sound to make it attractive. To make a sound you can use a build- in function named sound().sound() function takes a parameter which indicates frequency level of sound. You can get any frequency level of sound using this function. A programming code is given bellow.

Example: Programming Code for Sound System

 #include<stdio.h.>
#include<conio.h>

void main()
{
     int i;
    clrscr();
    printf(“Making sound………………”);
    for(i=0;i<100;i++)
      {
          sound(250*i);
          delay(250);
          nosound();
      }
getch();
}

Output
Making sound ………………..

7 comments:

  1. Replies
    1. This comment has been removed by the author.

      Delete
  2. This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. c program to find lcm of n numbers

    ReplyDelete
  3. That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more.
    list to string in python

    ReplyDelete
  4. Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. subliminal audio

    ReplyDelete