• 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: Recommended way to setup a timer in a CoreAudion application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recommended way to setup a timer in a CoreAudion application?


  • Subject: Re: Recommended way to setup a timer in a CoreAudion application?
  • From: "tahome izwah" <email@hidden>
  • Date: Wed, 16 Jan 2008 10:40:47 +0100

I'm using NSTimer for something similar, which works great, even
though it isn't exactly precise (not sure if you really need a
nanosecond precise timer).

NSTimer *myTimer = [[NSTimer scheduledTimerWithTimeInterval: fireInterval
											  target:self
											selector:@selector(myMethodToCall:)
											userInfo:nil
											 repeats:NO] retain];
...

if (myTimer) {
	[myTimer invalidate];
	[myTimer release];
	myTimer = nil;
}


HTH,
--th


2008/1/16, Stéphane Letz <email@hidden>:
> Ho,
>
> In my CoreAudio based application, I need to setup a timer to check
> that a failure condition has been triggered (like the underlying
> driver is not more running). I tried to play with
> CFRunLoopTimerCreate, CFRunLoopAddTimer API without much success up to
> now. Is there a recommended way to do that?
>
> Thanks
>
> Stephane Letz
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Recommended way to setup a timer in a CoreAudion application? (From: Stéphane Letz <email@hidden>)

  • Prev by Date: Recommended way to setup a timer in a CoreAudion application?
  • Next by Date: Re: Recommended way to setup a timer in a CoreAudion application?
  • Previous by thread: Recommended way to setup a timer in a CoreAudion application?
  • Next by thread: Re: Recommended way to setup a timer in a CoreAudion application?
  • Index(es):
    • Date
    • Thread