Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to make sound in c++

//Function Beep, part of windows.h library, first parameter is frequency
//in hertz, second parameter is time in miliseconds
#include<iostream>
#include<windows.h>
using namespace std;

int main()
{
  Beep(200,300);
}

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sound
ADD COMMENT
Topic
Name
1+4 =