cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to output a sound in the Mac Termina
How to output a sound in the Mac Terminal
Aug 7, 2017 at 1:36pm UTC
Handge
(56)
How do I output a sound in the Mac Terminal? It can be as simple as a beep or a bloop or anything along those lines. Now how would I play the sounds in the background while a 'text game' is playing kind of like music or something.
Aug 7, 2017 at 3:33pm UTC
Handy Andy
(5051)
Hello Handge,
I am not familiar with a Mac, but you might try
std::cout <<
"\a"
;
the escape sequence for the BELL.
Hope that helps,
Andy
Topic archived. No new replies allowed.