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 ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.