[futurebasic] Re: [FB] SOUND question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Fri, 3 Aug 2012 17:56:48 -0700
On Aug 3, 2012, at 11:49 AM, Walter Lenk wrote:

> 'PlaySound' routine posted by Bernie Wylde in 
> the 'futurebasic Digest 26 Apr 2010' - this routine uses  NSSound, 
> which is deprecated.
I just looked( and so did Robert C. )  Walter and found no indication that either the NSSound class method, soundNamed:, or its NSSound Delegate method sound:didFinishPlaying: are deprecated. I like soundNamed: because it searches all the usual places for sounds and the delegate method manages the sound playing. I notice Bernie’s code releases the soundDelegate after each playing. Maybe try not releasing it if you know there are potentially several sounds in a row.

Brian S.