Audio processing thread realtime priorties
Audio processing thread realtime priorties
- Subject: Audio processing thread realtime priorties
- From: Wolfgang Kundrus <email@hidden>
- Date: Tue, 9 Jun 2009 12:43:57 +0200
Hi,
I have had mixed results with the recommended way of setting up realtime priorities for the audio processing thread in our application. I am using thread_policy_set to setup THREAD_TIME_CONSTRAINT_POLICY. I have tried to read every bit of information about this and I am still confused about the values in the thread_time_constraint_policy data structure.
I have tried to do a good job in calculating them based on the buffersize of the IOProc. Unfortunatly, that did not give good results at 2048 samples and beyond, we are experiencing more drop outs. It had to set the values to fixed numbers in order to get the same performance at larger blocksize. So, my questions are:
1) Are the values in thread_time_constraint_policy_data_t used by the scheduler and in which way ?
2) Why would be a period of 1ms produce better results at wakeup rates of 50 ms ?
3) What excactly does the constraint value mean ? In most code examples it is simply the same as period.
All the best
Wolfgang Kundrus
Presonus Software Ltd.
_______________________________________________
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