//************************************** // Name: ^!Play music directly to PC's Internal Speaker // Description:Play music directly to PC's Internal Speaker // By: my nameis Nitin Jindal (from Panchkula,Haryana) (from psc cd) // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** /** Play music directly to PC's Internal Speaker PLEASE VOTE FOR ME ! Nitin Jindal */ #include <stdio.h> #include <stdlib.h> #include <dos.h> #include <conio.h> main() { float octave[7]={130.81,146.83,164.81,174.61,196.220,246.94}; int adn; while(!kbhit()) { adn=random(7); sound(octave[adn]*10); delay(190); nosound(); }}