Skip to content

Commit

Permalink
allowing CoreMedia for watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tj_devel709 committed Jul 23, 2021
1 parent 0e4cdba commit 9699dab
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/soundanalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@
using CoreML;
using Foundation;
using ObjCRuntime;

// TODO: Remove when CoreMedia is enabled on watchOS
#if WATCH
using CMTimeRange = Foundation.NSObject;
using CMTime = Foundation.NSObject;
#else
using CoreMedia;
#endif

namespace SoundAnalysis {

Expand All @@ -34,7 +27,7 @@ enum SNErrorCode : long {
InvalidFile,
}

[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0)]
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[Native]
public enum SNTimeDurationConstraintType : long
{
Expand Down

0 comments on commit 9699dab

Please sign in to comment.