Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

NSSound — Mac OS X 10.0

Synopsis

This class is a simple interface for playing AIFF, WAV, and NeXT sound files. An instance of this class is initialized from a file using the method initWithContentsOfFile:byReference:. The byReference: argument relates to how the sound object should be archived. If this argument is YES, only the name of the sound file will be archived; otherwise, the object data will be archived. There are four methods for controlling playback of the sound: play, pause, resume, and stop. Instances of NSSound may take a delegate object, which will be notified when the sound has finished playing.

image with no caption


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint