Looping sound with NSSound
Looping sound with NSSound
- Subject: Looping sound with NSSound
- From: Eric Hon-Anderson <email@hidden>
- Date: Wed, 16 Jan 2002 22:14:30 -0500
Is there any easy way to cause sound to loop with NSSound? NSSound is
certainly easy to use but there's not much flexibility exposed. I have
tried using a delegate and calling [sound play] in its
sound:didFinishPlaying handler, but I find that there's an unpleasant
"click" audible, apparently a result of too much time passing between
the sound finishing and being restarted.
If NSSound isn't going to help, are there any alternatives that won't
take too much effort?