Search
 
SCRIPT & CODE EXAMPLE
 

CPP

play audio c++

mciSendString("open "*.mp3" type mpegvideo alias mp3", NULL, 0, NULL);
Comment

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 :: how to initialize 2d vector in c++ 
Cpp :: c++ cli convert string to string^ 
Cpp :: how to get last element of set in c++ 
Cpp :: c++ area of triangle 
Cpp :: extends c++ 
Cpp :: what is _asm in C++ 
Cpp :: lopping over an array c++ 
Cpp :: c++ user input 
Cpp :: how to find size of int array in c++ 
Cpp :: minimum spanning trees c++ 
Cpp :: create random vectors c++ 
Cpp :: taking a vector in c++ containing element 
Cpp :: C++ Program to Reverse an Integer 
Cpp :: round double to n decimal places c++ 
Cpp :: 2d vector cpp 
Cpp :: C++ switch - case - break 
Cpp :: random number cpp 
Cpp :: string vector c++ 
Cpp :: C++ Volume of a Sphere 
Cpp :: how to make a list in c++ 
Cpp :: c++ template example 
Cpp :: c++ prime sieve 
Cpp :: get window position 
Cpp :: restting a queue stl 
Cpp :: array max and minimum element c++ 
Cpp :: how to use char in c++ 
Cpp :: run cmd command c++ 
Cpp :: c++ cstring to string 
Cpp :: filling 2d array with 0 c++ 
Cpp :: reverse level order traversal 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =