Re: Why is sound:didFinishPlaying: only called once?
Re: Why is sound:didFinishPlaying: only called once?
- Subject: Re: Why is sound:didFinishPlaying: only called once?
- From: Chris Kane <email@hidden>
- Date: Tue, 29 Jul 2003 19:55:59 -0700
On Monday, July 28, 2003, at 19:02, Manfred Schubert wrote:
I would like to loop a sound infinitely so I thought I can call [sound
play] in sound:didFinishPlaying: like this:
- (void)sound:(NSSound*)sound didFinishPlaying:(BOOL)aBool
{
[sound play];
}
But the sound is only repeated once, i. e. sound:didFinishPlaying: is
never called again. Why is that and how can I loop a sound infinitely?
There was some known bug in one or more of the OS releases.
Try: [[[sound copy] autorelease] play] instead and see if that helps.
I don't know that this is a workaround, I just thought it up.
Chris Kane
Cocoa Framework, Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.