Yes, but that documentation is pretty sparse.

What’s a real-time thread (only those can join)?
I figured out it doesn’t need to have a high priority, but must have 
THREAD_TIME_CONSTRAINT_POLICY set. The parameters I kind of guessed (according 
to block size and sample rate).

Also it only joins the workgroup successfully while the I/O thread is already 
active, but Apple’s example suggests otherwise:

https://developer.apple.com/documentation/audiotoolbox/workgroup_management/adding_parallel_real-time_threads_to_audio_workgroups?language=objc

I’m now joining the workgroup after waiting for a command from the I/O thread 
which works.
This is for adding parallel threads to the I/O thread.

I wish there was an example or better documentation in general.

-Stefan

From: Bradley Ross via Coreaudio-api <[email protected]>
Reply to: Bradley Ross <[email protected]>
Date: Wednesday, 9. June 2021 at 00:19
To: "[email protected]" <[email protected]>
Subject: Re: Coreaudio-api Digest, Vol 18, Issue 13 
kAudioDevicePropertyIOThreadOSWorkgroup real time threads

I’m very new to CoreAudio myself, however, I found the following links

https://developer.apple.com/documentation/coreaudio/kaudiodevicepropertyiothreadosworkgroup?changes=latest_minor<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.apple.com%2Fdocumentation%2Fcoreaudio%2Fkaudiodevicepropertyiothreadosworkgroup%3Fchanges%3Dlatest_minor&data=04%7C01%7Cswiegand%40adobe.com%7Ca1706f1c4e8d4536248008d92acb722e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637587875548989735%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=G9RE%2F0fiZRJZlq1h6lQro4%2FR%2F8VwM3DyNyYzwC%2B4xSQ%3D&reserved=0>

https://developer.apple.com/documentation/audiotoolbox/workgroup_management<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.apple.com%2Fdocumentation%2Faudiotoolbox%2Fworkgroup_management&data=04%7C01%7Cswiegand%40adobe.com%7Ca1706f1c4e8d4536248008d92acb722e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637587875548999692%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KxG7Pys5PQMMTov%2FyDjXHvLnUXT1Z2CcltvQXfVyEQw%3D&reserved=0>

Try the second one, it looks promising.




On Jun 8, 2021, at 3:00 PM, 
[email protected]<mailto:[email protected]>
 wrote:

Send Coreaudio-api mailing list submissions to
[email protected]<mailto:[email protected]>

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.apple.com/mailman/listinfo/coreaudio-api
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Coreaudio-api digest..."


Today's Topics:

  1. Joining Workgroup of Audio Device (Stefan Wiegand)


----------------------------------------------------------------------

Message: 1
Date: Tue, 8 Jun 2021 08:46:59 +0000
From: Stefan Wiegand <[email protected]>
To: Yeara Dany via Coreaudio-api <[email protected]>
Subject: Joining Workgroup of Audio Device
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi everyone,


I am currently playing around with the os_workgroup_t of the audio device which 
I obtain via kAudioDevicePropertyIOThreadOSWorkgroup.



Unfortunately I couldn?t find an example of how to correctly create the 
real-time threads (only real-time threads can join).



Currently I just set the constraints to manually calculated values (for 
thread_time_constraint_policy_data_t).

What is the right way to create these?

Best regards,
Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.apple.com/mailman/private/coreaudio-api/attachments/20210608/ee719b22/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Coreaudio-api mailing list
[email protected]
https://lists.apple.com/mailman/listinfo/coreaudio-api


------------------------------

End of Coreaudio-api Digest, Vol 18, Issue 13
*********************************************

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to