Re: System Sound, and Audio Services [solved more] (was: NSSound play often fails)

2009-08-10 Thread Uli Kusterer
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

System Sound, and Audio Services [solved more] (was: NSSound play often fails)

2009-08-08 Thread Jerry Krinock
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

Re: NSSound play often fails

2009-08-04 Thread James Walker
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

Re: NSSound play often fails

2009-08-04 Thread Kyle Sluder
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)

Re: NSSound play often fails

2009-08-04 Thread Matt Neuburg
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

Re: NSSound play often fails

2009-08-03 Thread James Walker
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

Re: NSSound play often fails

2009-08-03 Thread Jerry Krinock
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

NSSound play often fails

2009-08-03 Thread James Walker
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