-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHASE] Add suppport for Xcode13 beta 2. #12098
[PHASE] Add suppport for Xcode13 beta 2. #12098
Conversation
src/phase.cs
Outdated
public enum PhaseSpatializationMode : long { | ||
utomatic = 0, | ||
lwaysUseBinaural = 1, | ||
lwaysUseChannelBased = 2, |
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.
Looks like the 'A's got removed!
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.
Good catch, I probably did x+1 in vim ;)
src/phase.cs
Outdated
|
||
[Export ("endPoint", ArgumentSemantic.Assign)] | ||
[unsupported ExtVector: double __attribute__((ext_vector_type(2)))] EndPoint { get; set; } | ||
*/ |
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.
Did you want these included?
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.
Yes, since it is not supported but we do not want to need to write it.
src/phase.cs
Outdated
double Evaluate (double x); | ||
|
||
//[Export ("startPoint")] | ||
//[unsupported ExtVector: double __attribute__((ext_vector_type(2)))] StartPoint { get; } |
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.
Also wondering if you intended for these to be included
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.
Same
src/phase.cs
Outdated
|
||
[Export ("worldTransform", ArgumentSemantic.Assign)] | ||
simd_float4x4 WorldTransform { get; set; } | ||
*/ |
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.
Intentional?
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.
Yes, as with the others.
src/phase.cs
Outdated
bool Start ([NullAllowed] out NSError error); | ||
|
||
[Export ("seekToTime:completionBlock:")] | ||
bool SeekToTime (double time, [NullAllowed] Action<PhaseSoundEventSeekHandlerReason> completionBlock); |
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.
bool SeekToTime (double time, [NullAllowed] Action<PhaseSoundEventSeekHandlerReason> completionBlock); | |
bool Seek (double time, [NullAllowed] Action<PhaseSoundEventSeekHandlerReason> completionBlock); |
Also would this one be a candidate for async?
src/phase.cs
Outdated
{ | ||
/* | ||
[Export ("initWithEndPoint:curveType:")] | ||
IntPtr Constructor ([unsupported ExtVector: double __attribute__((ext_vector_type(2)))] endPoint, PhaseCurveType curveType); |
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.
double __attribute__((ext_vector_type(2)))
is an OpenTK.Vector2d
(and you'll need the [MarshalDirective] attribute + manual tests).
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results2 tests failed, 87 tests passed.Failed tests
Pipeline on Agent XAMBOT-1094.BigSur' |
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.
This should be removed from tvOS as there's no code, just header-based enums available, for that platform. This is confusing and ultimately unusable for developers.
tests/xtro-sharpie/SimdCheck.cs
Outdated
@@ -43,6 +43,8 @@ class NativeSimdInfo | |||
{ "vector_uint2", new NativeSimdInfo { Managed = "Vector2i", }}, | |||
{ "vector_uint3", new NativeSimdInfo { Managed = "Vector3i", }}, | |||
{ "vector_uint4", new NativeSimdInfo { Managed = "Vector4i", }}, | |||
// simd_floatX is typedefed to vector_doubleX |
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.
I think you mean // simd_doubleX is typedefed to vector_doubleX
?
} |
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.
hmm
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.
New line! Either Rol of you have to agree on one lol
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.
I think we agree not to change existing stuff ;-)
src/phase.cs
Outdated
NotFound = 1346925665, | ||
BadData = 1346925666, | ||
InvalidInstance = 1346925667, | ||
APIMisuse = 1346925668, |
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.
-> ApiMisuse
🔥 Tests failed catastrophically on Build (no summary found). 🔥Result file $(TEST_SUMMARY_PATH) not found. |
tests/xtro-sharpie/SimdCheck.cs
Outdated
@@ -43,6 +43,8 @@ class NativeSimdInfo | |||
{ "vector_uint2", new NativeSimdInfo { Managed = "Vector2i", }}, | |||
{ "vector_uint3", new NativeSimdInfo { Managed = "Vector3i", }}, | |||
{ "vector_uint4", new NativeSimdInfo { Managed = "Vector4i", }}, | |||
// simd_dobleX is typedefed to vector_doubleX |
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.
missing u
(at least in English and French)
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.
In Spanish is ok, doble :)
tools/common/Frameworks.cs
Outdated
@@ -583,6 +584,7 @@ public static Frameworks GetwatchOSFrameworks (bool is_simulator_build) | |||
{ "Intents", "Intents", 14,0 }, | |||
|
|||
{ "Chip", "CHIP", new Version (15, 0), NotAvailableInSimulator /* no headers in beta 2 */ }, | |||
{ "Phase", "PHASE", new Version (15,0), NotAvailableInSimulator /* no headers in beta 2 */ }, |
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.
should not be in tvOS
src/phase.cs
Outdated
|
||
namespace Phase { | ||
|
||
[Mac (12,0), NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] |
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.
It's not in tvOS so you need to remove TV (15,0)
... everywhere in the file
src/phase.cs
Outdated
|
||
[Async] | ||
[Export ("unregisterAssetWithIdentifier:completion:")] | ||
void UnregisterAssetWithIdentifier (string identifier, [NullAllowed] Action<bool> handler); |
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.
remove WithIdentifier
src/phase.cs
Outdated
void AddRangeForInputValuesAbove (double value, double fullGainAtValue, PhaseCurveType fadeCurveType, PhaseSoundEventNodeDefinition subtree); | ||
|
||
[Export ("addRangeWithEnvelope:subtree:")] | ||
void AddRangeWithEnvelope (PhaseEnvelope envelope, PhaseSoundEventNodeDefinition subtree); |
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.
remove WithEnvelope
ed744d6
to
9bb13f3
Compare
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results33 tests failed, 59 tests passed.Failed tests
Pipeline on Agent XAMBOT-1094.BigSur' |
@@ -422,7 +423,8 @@ public static Frameworks CreateiOSFrameworks (bool is_simulator_build) | |||
|
|||
{ "CoreLocationUI", "CoreLocationUI", 15,0 }, | |||
|
|||
{ "Chip", "CHIP", new Version (15, 0), NotAvailableInSimulator /* no headers in beta 2 */ } | |||
{ "Chip", "CHIP", new Version (15, 0), NotAvailableInSimulator /* no headers in beta 2 */ }, | |||
{ "Phase", "PHASE", new Version (15,0), NotAvailableInSimulator /* no headers in beta 2 */ }, |
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.
is not a separate entry required for MacCatalyst ?
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.
Mac Catalyst will pick up the iOS frameworks automatically.
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.
xamarin-macios/tools/common/Frameworks.cs
Lines 594 to 597 in 524fd24
public static Frameworks GetMacCatalystFrameworks () | |
{ | |
if (catalyst_frameworks == null) { | |
catalyst_frameworks = CreateiOSFrameworks (false); |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results33 tests failed, 59 tests passed.Failed tests
Pipeline on Agent XAMBOT-1094.BigSur' |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results2 tests failed, 90 tests passed.Failed tests
Pipeline on Agent XAMBOT-1104.BigSur' |
No description provided.