RE: Audio stuttering under CPU load
RE: Audio stuttering under CPU load
- Subject: RE: Audio stuttering under CPU load
- From: "Bertrand, Pierre-Luc" <email@hidden>
- Date: Wed, 10 Feb 2010 13:04:11 -0500
- Thread-topic: Audio stuttering under CPU load
Hi,
I considered that input and manage to reduce quite a bit the initial
timings, I now have:
2010-02-10 12:59:56.449 TTS[3084:5603] Timing 0: 0.418007
2010-02-10 12:59:56.455 TTS[3084:5603] Timing 1: 0.272989
2010-02-10 12:59:56.461 TTS[3084:5603] Timing 2: 0.238955
2010-02-10 12:59:56.467 TTS[3084:5603] Timing 3: 0.223041
2010-02-10 12:59:56.472 TTS[3084:5603] Timing 4: 0.226974
2010-02-10 12:59:56.479 TTS[3084:5603] Timing 5: 0.223994
2010-02-10 12:59:56.496 TTS[3084:5603] Timing 6: 0.387013
2010-02-10 12:59:56.501 TTS[3084:5603] Timing 7: 0.351012
2010-02-10 12:59:56.507 TTS[3084:5603] Timing 8: 0.328004
2010-02-10 12:59:56.514 TTS[3084:5603] Timing 9: 0.329971
2010-02-10 12:59:56.520 TTS[3084:5603] Timing 10: 0.326991
2010-02-10 12:59:56.526 TTS[3084:5603] Timing 11: 0.323057
2010-02-10 12:59:56.532 TTS[3084:5603] Timing 12: 0.326037
2010-02-10 12:59:56.539 TTS[3084:5603] Timing 13: 0.327945
2010-02-10 12:59:56.546 TTS[3084:5603] Timing 14: 0.343025
2010-02-10 12:59:56.552 TTS[3084:5603] Timing 15: 0.324011
2010-02-10 12:59:56.557 TTS[3084:5603] Timing 16: 0.241995
2010-02-10 12:59:56.563 TTS[3084:5603] Timing 17: 0.320971
2010-02-10 12:59:56.605 TTS[3084:5603] Timing 18: 0.333011
2010-02-10 12:59:56.615 TTS[3084:5603] Timing 19: 0.344992
2010-02-10 12:59:56.623 TTS[3084:5603] Timing 20: 0.325024
2010-02-10 12:59:56.631 TTS[3084:5603] Timing 21: 0.272989
2010-02-10 12:59:56.641 TTS[3084:5603] Timing 22: 0.335038
2010-02-10 12:59:56.649 TTS[3084:5603] Timing 23: 0.184953
2010-02-10 12:59:56.681 TTS[3084:5603] Timing 24: 0.227034
2010-02-10 12:59:56.690 TTS[3084:5603] Timing 25: 0.240028
2010-02-10 12:59:56.698 TTS[3084:5603] Timing 26: 0.225008
2010-02-10 12:59:56.707 TTS[3084:5603] Timing 27: 0.241995
2010-02-10 12:59:56.715 TTS[3084:5603] Timing 28: 0.222981
2010-02-10 12:59:56.723 TTS[3084:5603] Timing 29: 0.240028
I still have this clipping in there. These timings are in ms so
everything is under a ms and it is the time for the IOProc function to
be executed.
Thanks for that though, as you said, it would have probably cause issue
later on.
PL
-----Original Message-----
From: Ross Bencina [mailto:email@hidden]
Sent: Wednesday, February 10, 2010 12:12 AM
To: Bertrand, Pierre-Luc
Cc: email@hidden
Subject: Re: Audio stuttering under CPU load
Bertrand, Pierre-Luc wrote:
> Now I only lock to signal the processing thread to start processing a
> chunk of 800ms.
I'm not saying it's your problem in this case, but I'd avoid locking it
at
all. Sooner or later you'll get bitten.
[snip]
> 2010-02-09 15:56:03.916 TTS[2042:5603] Timing 0: 44.427036
> 2010-02-09 15:56:03.924 TTS[2042:5603] Timing 1: 8.080006
> 2010-02-09 15:56:03.930 TTS[2042:5603] Timing 2: 0.420988
You might find that the scheduler has disabled real-time priority on the
io
thread if you violate deadlines like that at startup. Try moving your
startup code outside the IOProc .
Ross.
_______________________________________________
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