Thanks for the help.
This activates basic playback of referenced file:
NSSound *sound = [[NSSound alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"ping" ofType:@"aiff"] byReference:NO];
[sound play];
What's the proper way to terminate playback? No luck implementing the following:
NSSound *sound = [[NSSound alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"ping" ofType:@"aiff"] byReference:NO];
if([sound isPlaying]) {
[sound stop];
Thanks for the assistance.
From the couple code snippets you included in your question, it looks like you are doing this:
and then you create another new sound object:
Try this very simple example (just add Play and Stop buttons to a view controller and connect them):