pyobjc-framework-AVFoundation 12.2__cp315-cp315-macosx_10_15_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
AVFAudio/__init__.py ADDED
@@ -0,0 +1,53 @@
1
+ """
2
+ Python mapping for the AVFAudio framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import CoreAudio
13
+ import CoreMedia
14
+ import Foundation
15
+ import objc
16
+ from . import _metadata
17
+ from ._inlines import _inline_list_
18
+
19
+ if objc.macos_available(11, 3):
20
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
21
+ name="AVFAudio",
22
+ frameworkIdentifier="com.apple.audio.AVFAudio",
23
+ frameworkPath=objc.pathForFramework(
24
+ "/System/Library/Frameworks/AVFAudio.framework"
25
+ ),
26
+ globals_dict=globals(),
27
+ inline_list=_inline_list_,
28
+ parents=(CoreAudio, CoreMedia, Foundation),
29
+ metadict=_metadata.__dict__,
30
+ )
31
+ else:
32
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
33
+ name="AVFoundation",
34
+ frameworkIdentifier="com.apple.avfoundation",
35
+ frameworkPath=objc.pathForFramework(
36
+ "/System/Library/Frameworks/AVFoundation.framework"
37
+ ),
38
+ globals_dict=globals(),
39
+ inline_list=_inline_list_,
40
+ parents=(CoreAudio, CoreMedia, Foundation),
41
+ metadict=_metadata.__dict__,
42
+ )
43
+
44
+ globals()["__dir__"] = dir_func
45
+ globals()["__getattr__"] = getattr_func
46
+
47
+ for cls, sel in ():
48
+ objc.registerUnavailableMethod(cls, sel)
49
+
50
+ del sys.modules["AVFAudio._metadata"]
51
+
52
+
53
+ globals().pop("_setup")()
Binary file