Join Dan Gookin for an in-depth discussion in this video Playing with sound in C, part of Code Clinic: C.
- 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 sport 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 a generic approach…
Dan introduces challenges and then provides an overview of his solutions in C. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem Three: Eight Queens
4. Problem Four: Accessing Peripherals
5. Problem Five: Recursion and Directories
6. Problem Six: Building the Web
- 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.