Learn how the PortAudio sound library is used to generate sound, which works on a variety of platforms. Discover that the sound wave is built and played back, which prevents the sound from being interactive. See how the ncurses library is used to generate text mode output on the terminal screen and also reads and responds to mouse input in text mode.
- [Instructor] The standard C Library lacks functions…for using the mouse or accessing sound hardware.…To program such features, you must venture out…into the internet, and look for a suitable library.…I might add that sound hardware is very specific,…and not the easiest thing to code.…Rather than learn how to program sound by using…an operating system's API, I chose the PortAudio Library.…Available at PortAudio.com,…the PortAudio Library bills itself as free,…cross platform, and open source,…and it's actually a great little library.…
The problem is that PortAudio is designed…to record and play sound snippets.…It doesn't support routines to generate tones,…although you can create such routines, which is what I did.…And while it has sound on and sound off functions,…you can't change the sound while it's playing.…Further, the documentation recommends that your code…not do anything serious while a sound is playing.…That's pretty limiting, but it's often what C Programmers…have to tolerate, if you're going to take…
Skill Level Intermediate
1. Summarize the Weather
2. Geolocation with C
3. Eight Queens with C
4. Build a Musical Instrument with C
5. Face Recognition with C
6. Web Dashboards with C
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.