For what it's worth, for an iPhone app, I wrote some code that uses
the system sound and audio queue APIs and is wrapped in a little class
that looks like an NSSound. Find it here:
http://zathras.de/sourcecode.htm#UKSoundUKSystemSound
That may be a better choice, as it will let you move back
On 2009 Aug 04, at 10:32, James Walker wrote:
Matt Neuburg wrote:
Either load the sound from the file yourself with
NSSound alloc and initWithContentsOfFile, and release it when done,
or just
use the auto-released sound provided for you by soundNamed:
Originally my code was simpler...
S
Matt Neuburg wrote:
It may be that some of your problems could be memory management problems.
You're grabbing control of a soundNamed: sound, retaining it, and then
releasing it in a different routine which, as you say yourself, may not ever
be called. This whole approach seems very weird. You s
On Aug 4, 2009, at 8:37 AM, Matt Neuburg wrote:
if ( (self == [super init]) != nil )
What on earth is *that* supposed to be
Looks like a typo: one too many equals signs.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Mon, 03 Aug 2009 11:28:04 -0700, James Walker
said:
>I'm having trouble getting sounds to play reliably. When it happens,
>-[NSSound play] returns YES, but I hear nothing, and the
>sound:didFinishPlaying: delegate method is not called. The sound in
>question is an AIFF file with a duration of
Jerry Krinock wrote:
On 2009 Aug 03, at 11:28, James Walker wrote:
I'm having trouble getting sounds to play reliably. When it happens,
-[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with
On 2009 Aug 03, at 11:28, James Walker wrote:
I'm having trouble getting sounds to play reliably. When it
happens, -[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with a duration of abou
I'm having trouble getting sounds to play reliably. When it happens,
-[NSSound play] returns YES, but I hear nothing, and the
sound:didFinishPlaying: delegate method is not called. The sound in
question is an AIFF file with a duration of about half a second. It
seems like whether it fails de