Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to play sounds in c++

PlaySound(TEXT("sound.wav"), NULL, SND_FILENAME);
Comment

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);
}

Comment

PREVIOUS NEXT
Code Example
Cpp :: new float array c++ 
Cpp :: ++i and i++ 
Cpp :: C++ Limit of Integer 
Cpp :: substr in cpp 
Cpp :: a square plus b square plus c square 
Cpp :: c++ uint32_t 
Cpp :: c preprocessor operations 
Cpp :: notepad++ 
Cpp :: c++ squaroot 
Cpp :: how to change colour image to grey in opencv c++ 
Cpp :: cpp string find all occurence 
Cpp :: c++ compile to exe 
Cpp :: quick sort 
Cpp :: cpp vector 
Cpp :: c++ switch statement 
Cpp :: Give an algorithm for finding the ith-to-last node in a singly linked list in which the last node is indicated by a null next reference. 
Cpp :: c++ get pointer from unique_ptr 
Cpp :: how to format decimal palces in c++ 
Cpp :: c++ template 
Cpp :: string reverse iterator c++ 
Cpp :: looping in map c++ 
Cpp :: cyclic array rotation in cpp 
Cpp :: C++ fibo 
Cpp :: string erase 
Cpp :: copy constructor c++ syntax 
Cpp :: sliding window c++ 
Cpp :: c++ call by value 
Cpp :: files in c++ 
Cpp :: loops in c and c ++ 
Cpp :: right shift in c++ 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =