• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is sound:didFinishPlaying: only called once?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Why is sound:didFinishPlaying: only called once? (From: Manfred Schubert <email@hidden>)

  • Prev by Date: Re: Button Text Color
  • Next by Date: Re: Memory Management
  • Previous by thread: Why is sound:didFinishPlaying: only called once?
  • Next by thread: linker error
  • Index(es):
    • Date
    • Thread