aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtmultimedia.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Expose enumerations of deprecated namespace QAudio to QtAudio"Friedemann Kleint2025-09-171-12/+0
| | | | | | | | | | | This reverts commit 4fa9f5bb010af6aabd8b3dfc8f0ee059fcb5620f. The change added the enumeration types from the QAudio namespace to the QtAudio by inserting the types into the type dict, which is a hack of sorts. Change-Id: Iae93dca871d7d16b6605026d5f312caba5801bb1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Expose enumerations of deprecated namespace QAudio to QtAudioFriedemann Kleint2025-09-121-0/+12
| | | | | | | | | | | | | Retrieve the enumerations from the type dict of "QAudio" and set them on the type dict of "QtAudio" as is done for example in feature_01_addLowerNames(). Complements 8fb5639ce7025456b1410f63d1463682117fe2f5, adapting to qtmultimedia/e6d969fc3889387f0bcc136521f932fd4913927f. Pick-to: 6.10 Change-Id: Ie3998bb4d8acd97a7659568a2ced15d81f6dd280 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix the audiosource example by restoring back QAudio.convertVolume()Friedemann Kleint2025-09-091-5/+4
| | | | | | | | | | | | | Changes qtmultimedia/1922ae5c3631eb1bd74a8069f9a2a6422b6b0c89, qtmultimedia/b10efb1c79b5cffbe9ad9a0e7487247957e02ff0 finally completed the namespace name change from QAudio to QtAudio. QAudio::convertVolume() was moved to removed_api.cpp, bring it back as added function. Pick-to: 6.10 Change-Id: I89b89c950bc75abab6409aa1e13c38f4a71e20cf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add PepModule_AddType()Friedemann Kleint2025-09-031-1/+1
| | | | | | | | | | | | | PyModule_AddObject() is deprecated in 3.13. For adding types to a module, PyModule_AddType() can be used instead (added to stable ABI in 3.10). Add a Pep function for it. This requires adapting some type names in QML. Pick-to: 6.9 6.8 Task-number: PYSIDE-3147 Change-Id: I169a6b7071c780dd3c3ec2ddd0762dca6cacf067 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix compilation with Python 3.14/raised limited API/PyObject parametersFriedemann Kleint2025-09-031-2/+3
| | | | | | | | | | Some macros (Py_INCREF/Py_TYPE) were reimplemented as functions, unearthing some type incompatibilities. Pick-to: 6.9 6.8 Task-number: PYSIDE-3147 Change-Id: If10bc5941d718d8845c7bbd5facf6021539aad34 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Multimedia: Adapt to revert of QAudio->QtAudio namespace renamingFriedemann Kleint2024-04-121-1/+2
| | | | | | | | | | | | Partially revert 4d761eaaf852f8d82925e111150f25c0dd5f3e83. Adapt to qtmultimedia/7fcea568c9c64f3bcebda21f0df02aa0107dfd0c, reverting qtmultimedia/edaec2bf714c98d65f12c8ed9a2ffbd1603635a7. Task-number: QTBUG-123997 Pick-to: 6.7 Change-Id: Ibd0ad737293f4b9107909f37554c03f64bce5d1e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Adapt to renaming of namespace QAudio->QtAudioFriedemann Kleint2024-02-281-0/+5
| | | | | | | | | | | - Adapt the examples. - Create an alias into the module. - Add a hack to the signal manager for signals which maintain the old string-based signature. Task-number: PYSIDE-2497 Change-Id: I9db5e59851a2cb9161fdcecf87e78d980eda2045 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add QAudioBuffer.data()/constData()Friedemann Kleint2022-06-011-0/+12
| | | | | | | Pick-to: 6.3 Fixes: PYSIDE-1947 Change-Id: I9e1799f245b8d75f61ad9551cb847994ea59bdb9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Expose QVideoFrame::bits(int)Friedemann Kleint2021-10-041-2/+3
| | | | | | | | | | | QVideoFrame::bits() was removed in Qt 6; expose QVideoFrame::bits(int plane). Pick-to: 6.2 Fixes: PYSIDE-1674 Change-Id: I23f58f71286e445ad1b1e170924ee5e40f0b2491 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Re-add QtMultimedia/WidgetsFriedemann Kleint2021-05-141-8/+0
| | | | | | | | | | | | | | | | | Fix it to build with qtmultimedia/9a4822037def3b9d48abea8bbfd7ea20fd19849b (wip/qt6). Remove typesystem_multimedia_forward_declarations.xml as the forward declarations of QVideoWidget and QGraphicsVideoItem no longer exist. Fix the tests. Fix the player example to run/crash. Pick-to: 6.1 Task-number: PYSIDE-1482 Change-Id: I340693e3510347f95b55395985bd2b0f294769a1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-0/+53
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>