-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xcode16.3] Merge main into xcode16.3. (#22248)
- Loading branch information
Showing
301 changed files
with
15,203 additions
and
40,616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<Documentation> | ||
<Docs DocId="P:AudioToolbox.AudioQueue.CurrentLevelMeter"> | ||
<summary>Current Level meters, one per channel in the range zero (minimum) to one (maximum).</summary> | ||
<value>Array of level meters, one per audio channel.</value> | ||
<remarks> | ||
<para> | ||
To use this property, make sure that you set the <see cref="P:AudioToolbox.AudioQueue.EnableLevelMetering" /> property on the queue. | ||
</para> | ||
<para> | ||
Use the <see cref="P:AudioToolbox.AudioQueue.CurrentLevelMeterDB" /> if you want to get the values in decibels. | ||
</para> | ||
<example> | ||
<code lang="c#"><![CDATA[ | ||
class MyInputQueue : InputAudioQueue { | ||
public MyQueueInput (AudioStreamBasicDescription desc) : base (desc) | ||
{ | ||
inputQueue.EnableLevelMetering = true; | ||
} | ||
protected virtual void OnInputCompleted (IntPtr audioQueueBuffer, | ||
AudioTimeStamp timeStamp, | ||
AudioStreamPacketDescription [] packetData) | ||
{ | ||
var levels = CurrentLevelMeterDB; | ||
for (int channel = 0; channel < levels.Count; channel.Length) | ||
Console.WriteLine ("Channel {0} Average Power: {1} Peak Power: {2}", | ||
channel, levels [channel].AveragePower, levels [channel].PeakPower); | ||
} | ||
} | ||
}]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
<Docs DocId="P:AudioToolbox.AudioQueue.CurrentLevelMeterDB"> | ||
<summary>Current Level meters, one per channel in decibels.</summary> | ||
<value>Array of level meters, one per audio channel.</value> | ||
<remarks> | ||
<para> | ||
To use this property, make sure that you set the <see cref="P:AudioToolbox.AudioQueue.EnableLevelMetering" /> property on the queue. | ||
</para> | ||
<para> | ||
Use the <see cref="P:AudioToolbox.AudioQueue.CurrentLevelMeter" /> if you want to get the values normalized to the range zero (minimum) to one (maximum). | ||
</para> | ||
<example> | ||
<code lang="c#"><![CDATA[ | ||
class MyInputQueue : InputAudioQueue { | ||
public MyQueueInput (AudioStreamBasicDescription desc) : base (desc) | ||
{ | ||
inputQueue.EnableLevelMetering = true; | ||
} | ||
protected virtual void OnInputCompleted (IntPtr audioQueueBuffer, | ||
AudioTimeStamp timeStamp, | ||
AudioStreamPacketDescription [] packetData) | ||
{ | ||
var levels = CurrentLevelMeterDB; | ||
for (int channel = 0; channel < levels.Count; channel.Length) | ||
Console.WriteLine ("Channel {0} Average Power: {1} Peak Power: {2}", | ||
channel, levels [channel].AveragePower, levels [channel].PeakPower); | ||
} | ||
} | ||
}]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<Documentation> | ||
<Docs DocId="P:AudioUnit.AUAudioUnit.AudioComponentRegistrationsChangedNotification"> | ||
<summary>Notification constant for AudioComponentRegistrationsChanged</summary> | ||
<value>NSString constant, should be used as a token to NSNotificationCenter.</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
AUAudioUnit.AudioComponentRegistrationsChangedNotification, (notification) => {Console.WriteLine ("Received the notification AUAudioUnit", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification AUAudioUnit", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (AUAudioUnit.AudioComponentRegistrationsChangedNotification, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
<Docs DocId="P:AudioUnit.AUAudioUnit.AudioComponentInstanceInvalidationNotification"> | ||
<summary>Notification constant for AudioComponentInstanceInvalidation</summary> | ||
<value>NSString constant, should be used as a token to NSNotificationCenter.</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
AUAudioUnit.AudioComponentInstanceInvalidationNotification, (notification) => {Console.WriteLine ("Received the notification AUAudioUnit", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification AUAudioUnit", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (AUAudioUnit.AudioComponentInstanceInvalidationNotification, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<Documentation> | ||
<Docs DocId="F:AudioUnit.AudioComponentDescription.ComponentSubType"> | ||
<summary>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentSubType" /> value you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" /></summary> | ||
<remarks> | ||
<para>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentType" /> you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" />.</para> | ||
<para /> | ||
<para>Since this is an integer, and the values on those enumerations are strongly typed, you typically need to cast. The following example shows this:</para> | ||
<para /> | ||
<para /> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[var processingGraph = new AUGraph (); | ||
int samplerNode, ioNode; | ||
var musicSampler = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.MusicDevice, | ||
ComponentSubType = (int)AudioTypeMusicDevice.Sampler | ||
}; | ||
samplerNode = processingGraph.AddNode (musicSampler); | ||
var remoteOutput = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.Output, | ||
ComponentSubType = (int)AudioTypeOutput.Remote | ||
}; | ||
ioNode = processingGraph.AddNode (remoteOutput); | ||
processingGraph.Open ();]]></code> | ||
</example>.</remarks> | ||
</Docs> | ||
<Docs DocId="F:AudioUnit.AudioComponentDescription.ComponentSubType"> | ||
<summary>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentSubType" /> value you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" /></summary> | ||
<remarks> | ||
<para>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentType" /> you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" />.</para> | ||
<para /> | ||
<para>Since this is an integer, and the values on those enumerations are strongly typed, you typically need to cast. The following example shows this:</para> | ||
<para /> | ||
<para /> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[var processingGraph = new AUGraph (); | ||
int samplerNode, ioNode; | ||
var musicSampler = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.MusicDevice, | ||
ComponentSubType = (int)AudioTypeMusicDevice.Sampler | ||
}; | ||
samplerNode = processingGraph.AddNode (musicSampler); | ||
var remoteOutput = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.Output, | ||
ComponentSubType = (int)AudioTypeOutput.Remote | ||
}; | ||
ioNode = processingGraph.AddNode (remoteOutput); | ||
processingGraph.Open ();]]></code> | ||
</example>.</remarks> | ||
</Docs> | ||
</Documentation> |
Oops, something went wrong.
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ [CI Build #8640425] Build passed (Build packages) ✅
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ [CI Build #8640425] Build passed (Build macOS tests) ✅
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build #8640425] Tests on macOS M1 - Mac Monterey (12) passed 💻
✅ All tests on macOS M1 - Mac Monterey (12) passed.
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build #8640425] Tests on macOS X64 - Mac Sonoma (14) passed 💻
✅ All tests on macOS X64 - Mac Sonoma (14) passed.
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build #8640425] Tests on macOS M1 - Mac Ventura (13) passed 💻
✅ All tests on macOS M1 - Mac Ventura (13) passed.
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build #8640425] Tests on macOS arm64 - Mac Sequoia (15) passed 💻
✅ All tests on macOS arm64 - Mac Sequoia (15) passed.
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]
8640425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 [CI Build #8640425] Test results 🔥
Test results
❌ Tests failed on VSTS: test results
4 tests crashed, 3 tests failed, 102 tests passed.
Failures
❌ dotnettests tests (iOS)
🔥 Failed catastrophically on VSTS: test results - dotnettests_ios (no summary found).
Html Report (VSDrops) Download
❌ dotnettests tests (MacCatalyst)
🔥 Failed catastrophically on VSTS: test results - dotnettests_maccatalyst (no summary found).
Html Report (VSDrops) Download
❌ dotnettests tests (macOS)
🔥 Failed catastrophically on VSTS: test results - dotnettests_macos (no summary found).
Html Report (VSDrops) Download
❌ dotnettests tests (tvOS)
🔥 Failed catastrophically on VSTS: test results - dotnettests_tvos (no summary found).
Html Report (VSDrops) Download
❌ introspection tests
Html Report (VSDrops) Download
❌ monotouch tests (iOS)
Html Report (VSDrops) Download
❌ monotouch tests (tvOS)
Html Report (VSDrops) Download
Successes
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download
Pipeline on Agent
Hash: 8640425b68f20a412008a56eb10f202632de8f8d [CI build]