•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 426,882 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,291 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 6674 | Replies: 5
![]() |
#include <stdmagic>
using namespace std;
int main()
{
magically_do_something_platform_and_implementation_specific(PLAY_MUSIC, "hello.mpg");
} I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,472
Reputation:
Rep Power: 10
Solved Threads: 176
Not quite ZZ Top but it's a start!
The Windows Api has a little thing called Beep(), try it ...
There are nicer things like sound(), that use the sound chip and midi voices. A little tough for C++. If you want to test it, get BCX free from:
http://www.rjpcomputing.com/programm.../devsuite.html
get used to BCXDX and learn to fly with sound and graphics! There are lots of sample files. This goes beyond the usual boring calculator and employee database stuff! You are still learning C/C++ though.
The Windows Api has a little thing called Beep(), try it ...
// simple sounds via Beep(frequency_hrz, duration_ms)
#include <iostream>
#include <windows.h> // WinApi header file
using namespace std;
int main(int argc, char *argv[])
{
Beep(523.2511,500); // 523.2511 hertz (C5) for 500 milliseconds
Beep(587.3295,500);
Beep(659.2551,500);
Beep(698.4565,500);
Beep(783.9909,500);
cin.get(); // wait
return 0;
}http://www.rjpcomputing.com/programm.../devsuite.html
get used to BCXDX and learn to fly with sound and graphics! There are lots of sample files. This goes beyond the usual boring calculator and employee database stuff! You are still learning C/C++ though.
May 'the Google' be with you!
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Jumps into code on program end (Pascal and Delphi)
- Can anybody pls help me writing c or c++ or java code for this program? (C++)
- my speakers dotn play ANY sound!!!!! (Peripherals)
- Open source for code for program similar to HyperTerminal (VB.NET)
- How to play sound through stereo speakers (C)
- How to code a program that can show color text output??? (C)
Other Threads in the C++ Forum
- Previous Thread: Im new
- Next Thread: Cant execute a c++ program



Linear Mode