Re: How to make Metronome?
Re: How to make Metronome?
- Subject: Re: How to make Metronome?
- From: John Pannell <email@hidden>
- Date: Sat, 2 Sep 2006 22:08:22 -0600
Hi all-
- (void) handletimer: (NSTimer *) bpmtimer{
NSSound *mysound = [NSSound soundNamed:@"Pop"];
[mysound play];
}
I suspect that creating a new sound object every time the method is
called is a bad idea (although NSSound probably caches the sound
after the first load for performance). I would recommend making the
sound an instance variable, loading it before the metronome starts,
and playing it in the handleTimer: method.
HTH!
John
John Pannell
Positive Spin Media
http://www.positivespinmedia.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden