• 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: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads


  • Subject: Re: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads
  • From: Stefan Wiegand via Coreaudio-api <email@hidden>
  • Date: Wed, 9 Jun 2021 09:53:24 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=adobe.com; dmarc=pass action=none header.from=adobe.com; dkim=pass header.d=adobe.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qOZwKgdki0VTyx/wxToI1GStGQuWjfn/5v/F5W+aXFk=; b=evXYBrJBVPeaJzcuvR1bzrOzkgWmcrwYk2dEtAD1QXlrG3PGwqhfVgpTDoHp0WDeakGk4tZc1KNWSCRO6N4n3lQQd9Qlguyz3TtUB1YrEljIW/RIIaYPnFquMGTdc+3I6JRAVLUIFN8Pv4uJxe6yWimZcy2rA3fdfkgXunUD0Fz+ui8n+wAgw3w+8wbIsuBn5mTsL84ck2gTIUwAkrOQ9BTbTAqOpObN+5QI4DHifPYXrByV0EtjrPUbjC65WpM9REXGQF1+31rvXsAC1I3+BDXk1PT/hone2DzKQ+sk2jpOdc9djPiWD23J76Mu0nA76oCb/nMksPC6dHLO7MStqA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZxMqZG0xZJrhJgEqaWY6NRqxvVUplI6NXZRXiQI3hLdQ8UNh2tyajXSOZroPAX7CReQAEHj0v2x139PlWObbGJ1LC9r09M4vg/sA2JpfP5xDsu9DzCen0H8OaSw0C5OzrPKCa6T/oU8KWoWeFSlTe3LCW9rPKdybzxS2fsdk1bpGlbygUCExu+f393aekXYEyLK2ObJOOrGbYoewDX6bIkP2PDIQ6s/ScouOjm6k/+3PMlwrEctv2PtHa7X9XDzy/19pkyQ/IpYD7FgDtT4lA9jNq2MQ5FPFNTEmWEUqD541E+H9ffk32ld/IZBRzAWmnDTF2fL+0iIdiwmF2ZLQ5Q==
  • Thread-topic: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads

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@hidden>
Reply to: Bradley Ross <email@hidden>
Date: Wednesday, 9. June 2021 at 00:19
To: "email@hidden" <email@hidden>
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://developer.apple.com/documentation/coreaudio/kaudiodevicepropertyiothreadosworkgroup?changes=latest_minor&data=04|01|email@hidden|a1706f1c4e8d4536248008d92acb722e|fa7b1b5a7b34438794aed2c178decee1|0|0|637587875548989735|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0=|1000&sdata=G9RE/0fiZRJZlq1h6lQro4/R/8VwM3DyNyYzwC+4xSQ=&reserved=0>

https://developer.apple.com/documentation/audiotoolbox/workgroup_management<https://nam04.safelinks.protection.outlook.com/?url=https://developer.apple.com/documentation/audiotoolbox/workgroup_management&data=04|01|email@hidden|a1706f1c4e8d4536248008d92acb722e|fa7b1b5a7b34438794aed2c178decee1|0|0|637587875548999692|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0=|1000&sdata=KxG7Pys5PQMMTov/yDjXHvLnUXT1Z2CcltvQXfVyEQw=&reserved=0>

Try the second one, it looks promising.




On Jun 8, 2021, at 3:00 PM,
email@hidden<mailto:email@hidden>
 wrote:

Send Coreaudio-api mailing list submissions to
email@hidden<mailto:email@hidden>

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@hidden

You can reach the person managing the list at
email@hidden

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@hidden>
To: Yeara Dany via Coreaudio-api <email@hidden>
Subject: Joining Workgroup of Audio Device
Message-ID: <email@hidden>
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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads (From: Bradley Ross via Coreaudio-api <email@hidden>)

  • Prev by Date: Re: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads
  • Next by Date: Create audio device on the fly
  • Previous by thread: Re: Coreaudio-api Digest, Vol 18, Issue 13 kAudioDevicePropertyIOThreadOSWorkgroup real time threads
  • Next by thread: Create audio device on the fly
  • Index(es):
    • Date
    • Thread