Sound
The Cocoa Application Kit includes the NSSound class that provides limited direct support for sound playback, but not recording. More powerful and flexible sound playback is supported through QuickTime. QuickTime can read a wide variety of sound file formats including the popular MP3 and CD audio formats. The Core Audio API underlies both QuickTime and NSSound. Even though there is no support for sound recording via Cocoa’s NSSound class, the Core Audio APIs can be used by Cocoa applications to record sounds that are later played by NSSound.
NSSound Class
The Application Kit provides the NSSound class as a simple method of playing sound. It natively supports playback of .aiff, .wav, and .snd files, and can be extended through the use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access