winrt-Windows.Media.Devices 2.2.0__tar.gz → 2.3.0__tar.gz

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.
Files changed (20) hide show
  1. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/PKG-INFO +10 -9
  2. winrt_windows_media_devices-2.3.0/all-requirements.txt +10 -0
  3. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/py.Windows.Media.Devices.cpp +28 -1
  4. winrt_windows_media_devices-2.3.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/requirements.txt +2 -2
  6. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt/_winrt_windows_media_devices.pyi +6 -3
  7. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt/windows/media/devices/__init__.py +1 -1
  8. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt_Windows.Media.Devices.egg-info/PKG-INFO +10 -9
  9. winrt_windows_media_devices-2.3.0/winrt_Windows.Media.Devices.egg-info/requires.txt +11 -0
  10. winrt_windows_media_devices-2.2.0/all-requirements.txt +0 -9
  11. winrt_windows_media_devices-2.2.0/pywinrt-version.txt +0 -1
  12. winrt_windows_media_devices-2.2.0/winrt_Windows.Media.Devices.egg-info/requires.txt +0 -10
  13. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/README.md +0 -0
  14. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/pyproject.toml +0 -0
  15. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/setup.py +0 -0
  17. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt/windows/media/devices/py.typed +0 -0
  18. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt_Windows.Media.Devices.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt_Windows.Media.Devices.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_media_devices-2.2.0 → winrt_windows_media_devices-2.3.0}/winrt_Windows.Media.Devices.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Media.Devices
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,15 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Media.Capture[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Media.Devices.Core[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Media.Capture[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Media.Devices.Core[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Media.Effects[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.3.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
24
25
 
25
26
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
27
 
@@ -0,0 +1,10 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Devices.Enumeration[all]==2.3.0
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Media.Capture[all]==2.3.0
7
+ winrt-Windows.Media.Devices.Core[all]==2.3.0
8
+ winrt-Windows.Media.Effects[all]==2.3.0
9
+ winrt-Windows.Media.MediaProperties[all]==2.3.0
10
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.Media.Devices.h"
4
4
 
@@ -595,6 +595,32 @@ namespace py::cpp::Windows::Media::Devices
595
595
  }
596
596
  }
597
597
 
598
+ static PyObject* AudioDeviceController_get_AudioCaptureEffectsManager(py::wrapper::Windows::Media::Devices::AudioDeviceController* self, void* /*unused*/) noexcept
599
+ {
600
+ try
601
+ {
602
+ static std::optional<bool> is_property_present{};
603
+
604
+ if (!is_property_present.has_value())
605
+ {
606
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Devices.AudioDeviceController", L"AudioCaptureEffectsManager");
607
+ }
608
+
609
+ if (!is_property_present.value())
610
+ {
611
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
612
+ return nullptr;
613
+ }
614
+
615
+ return py::convert(self->obj.AudioCaptureEffectsManager());
616
+ }
617
+ catch (...)
618
+ {
619
+ py::to_PyErr();
620
+ return nullptr;
621
+ }
622
+ }
623
+
598
624
  static PyObject* _assign_array_AudioDeviceController(PyObject* /*unused*/, PyObject* arg) noexcept
599
625
  {
600
626
  auto array = std::make_unique<py::ComArray<winrt::Windows::Media::Devices::AudioDeviceController>>();
@@ -631,6 +657,7 @@ namespace py::cpp::Windows::Media::Devices
631
657
  static PyGetSetDef _getset_AudioDeviceController[] = {
632
658
  { "volume_percent", reinterpret_cast<getter>(AudioDeviceController_get_VolumePercent), reinterpret_cast<setter>(AudioDeviceController_put_VolumePercent), nullptr, nullptr },
633
659
  { "muted", reinterpret_cast<getter>(AudioDeviceController_get_Muted), reinterpret_cast<setter>(AudioDeviceController_put_Muted), nullptr, nullptr },
660
+ { "audio_capture_effects_manager", reinterpret_cast<getter>(AudioDeviceController_get_AudioCaptureEffectsManager), nullptr, nullptr, nullptr },
634
661
  { }
635
662
  };
636
663
 
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -14,6 +14,7 @@ import winrt.windows.foundation as windows_foundation
14
14
  import winrt.windows.foundation.collections as windows_foundation_collections
15
15
  import winrt.windows.media.capture as windows_media_capture
16
16
  import winrt.windows.media.devices.core as windows_media_devices_core
17
+ import winrt.windows.media.effects as windows_media_effects
17
18
  import winrt.windows.media.mediaproperties as windows_media_mediaproperties
18
19
  import winrt.windows.storage.streams as windows_storage_streams
19
20
 
@@ -59,6 +60,8 @@ class AudioDeviceController(winrt.system.Object):
59
60
  def muted(self) -> bool: ...
60
61
  @muted.setter
61
62
  def muted(self, value: bool) -> None: ...
63
+ @_property
64
+ def audio_capture_effects_manager(self) -> typing.Optional[windows_media_effects.AudioCaptureEffectsManager]: ...
62
65
 
63
66
  @typing.final
64
67
  class AudioDeviceModule(winrt.system.Object):
@@ -684,11 +687,11 @@ class VideoDeviceController(winrt.system.Object):
684
687
  def _from(obj: winrt.system.Object, /) -> VideoDeviceController: ...
685
688
  def get_available_media_stream_properties(self, media_stream_type: windows_media_capture.MediaStreamType, /) -> typing.Optional[windows_foundation_collections.IVectorView[windows_media_mediaproperties.IMediaEncodingProperties]]: ...
686
689
  def get_device_property(self, property_id: str, /) -> typing.Optional[winrt.system.Object]: ...
687
- def get_device_property_by_extended_id(self, extended_property_id: winrt.system.Array[winrt.system.UInt8], max_property_value_size: typing.Optional[winrt.system.UInt32], /) -> typing.Optional[VideoDeviceControllerGetDevicePropertyResult]: ...
690
+ def get_device_property_by_extended_id(self, extended_property_id: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], max_property_value_size: typing.Optional[winrt.system.UInt32], /) -> typing.Optional[VideoDeviceControllerGetDevicePropertyResult]: ...
688
691
  def get_device_property_by_id(self, property_id: str, max_property_value_size: typing.Optional[winrt.system.UInt32], /) -> typing.Optional[VideoDeviceControllerGetDevicePropertyResult]: ...
689
692
  def get_media_stream_properties(self, media_stream_type: windows_media_capture.MediaStreamType, /) -> typing.Optional[windows_media_mediaproperties.IMediaEncodingProperties]: ...
690
693
  def set_device_property(self, property_id: str, property_value: typing.Optional[winrt.system.Object], /) -> None: ...
691
- def set_device_property_by_extended_id(self, extended_property_id: winrt.system.Array[winrt.system.UInt8], property_value: winrt.system.Array[winrt.system.UInt8], /) -> VideoDeviceControllerSetDevicePropertyStatus: ...
694
+ def set_device_property_by_extended_id(self, extended_property_id: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], property_value: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> VideoDeviceControllerSetDevicePropertyStatus: ...
692
695
  def set_device_property_by_id(self, property_id: str, property_value: typing.Optional[winrt.system.Object], /) -> VideoDeviceControllerSetDevicePropertyStatus: ...
693
696
  def set_media_stream_properties_async(self, media_stream_type: windows_media_capture.MediaStreamType, media_encoding_properties: typing.Optional[windows_media_mediaproperties.IMediaEncodingProperties], /) -> windows_foundation.IAsyncAction: ...
694
697
  def try_acquire_exclusive_control(self, device_id: str, mode: windows_media_capture.MediaCaptureDeviceExclusiveControlReleaseMode, /) -> bool: ...
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import enum
4
4
  import typing
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Media.Devices
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,15 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Media.Capture[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Media.Devices.Core[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Media.Capture[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Media.Devices.Core[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Media.Effects[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.3.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
24
25
 
25
26
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
27
 
@@ -0,0 +1,11 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Enumeration[all]==2.3.0
5
+ winrt-Windows.Foundation[all]==2.3.0
6
+ winrt-Windows.Foundation.Collections[all]==2.3.0
7
+ winrt-Windows.Media.Capture[all]==2.3.0
8
+ winrt-Windows.Media.Devices.Core[all]==2.3.0
9
+ winrt-Windows.Media.Effects[all]==2.3.0
10
+ winrt-Windows.Media.MediaProperties[all]==2.3.0
11
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,9 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Devices.Enumeration[all]==2.2.0
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Foundation.Collections[all]==2.2.0
6
- winrt-Windows.Media.Capture[all]==2.2.0
7
- winrt-Windows.Media.Devices.Core[all]==2.2.0
8
- winrt-Windows.Media.MediaProperties[all]==2.2.0
9
- winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1 +0,0 @@
1
- 2.2.0
@@ -1,10 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Enumeration[all]==2.2.0
5
- winrt-Windows.Foundation[all]==2.2.0
6
- winrt-Windows.Foundation.Collections[all]==2.2.0
7
- winrt-Windows.Media.Capture[all]==2.2.0
8
- winrt-Windows.Media.Devices.Core[all]==2.2.0
9
- winrt-Windows.Media.MediaProperties[all]==2.2.0
10
- winrt-Windows.Storage.Streams[all]==2.2.0