Advertisement
7_2009-2012 Graphics/ Sound #231766

^!Play music directly to PC's Internal Speaker

Play music directly to PC's Internal Speaker

AI

Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kode Sumber
original-source
/** 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();
}}
Komentar Asli (3)
Dipulihkan dari Wayback Machine