Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/AVFoundation/AudioRendererWasFlushedAutomaticallyEventArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#if !WATCH
using XamCore.Foundation;
using XamCore.CoreMedia;
using XamCore.ObjCRuntime;

namespace XamCore.AVFoundation {

[TV (11, 0), NoWatch, Mac (10, 13), iOS (11, 0)]
public partial class AudioRendererWasFlushedAutomaticallyEventArgs {
public CMTime AudioRendererFlushTime {
get {
return _AudioRendererFlushTime.CMTimeValue;
}
}
}
}
#endif
15 changes: 14 additions & 1 deletion src/AVFoundation/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ public enum AVCaptureSessionInterruptionReason : nint {
VideoDeviceNotAvailableInBackground = 1,
AudioDeviceInUseByAnotherClient = 2,
VideoDeviceInUseByAnotherClient = 3,
VideoDeviceNotAvailableWithMultipleForegroundApps = 4
VideoDeviceNotAvailableWithMultipleForegroundApps = 4,
[iOS (11, 1)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NoMac, NoTV and NoWatch missing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It already has a [NoTV, NoWatch] in the top of the enum and it is inside a #if !MONOMAC which means that is not necessary, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah technically it is not needed but I think it was the plan that at some point we would get rid of those conditionals if possible so having that metadata there won't hurt I guess, unless @spouliot says otherwise :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd get rid of #if !MONOMAC, not of availability attributes on the parent (so lack of [NoTV, NoWatch] still valid).

We could just add a [NoMac] to public enum AVCaptureSessionInterruptionReason but that would be just noise in this case, better do it for things we add.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k, we'll soon have xtro results so it will be easier to spot them :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, leaving as it is to reduce noise in the diff. We can do this later for new types or in a pr just to get rid of the #if !MONOMAC

VideoDeviceNotAvailableDueToSystemPressure = 5,
}

[iOS (9,0)]
Expand Down Expand Up @@ -977,4 +979,15 @@ public enum AVDepthDataQuality : nint {
Low = 0,
High = 1
}

[NoWatch, NoTV, NoMac, iOS (11,1)]
[Flags]
[Native]
public enum AVCaptureSystemPressureFactors : nuint
{
None = 0,
SystemTemperature = (1 << 0),
PeakPower = (1 << 1),
DepthModuleTemperature = (1 << 2)
}
}
Loading