Description
It was noticed that the https://doc.qt.io/qt-6/qiodevice.html#writeData and https://doc.qt.io/qt-6/qaudioformat.html#normalizedSampleValue were not exposed to Python because they both take const char* for the first parameter. Shiboken was let to generate bindings on its own for these two functions and hence they were not working properly.
Fix:
Instead of const char* use PyBuffer in the binding wrapper code.
Attachments
Issue Links
- relates to
-
PYSIDE-1983 Crash to desktop when using Custom QIODevice with QAudioSource
-
- Closed
-
For Gerrit Dashboard: PYSIDE-1743 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
384813,22 | AudioSource Example + Binding for QAudioFormat.normalizedSampleValue(data: bytes) | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
387865,2 | AudioSource Example + Binding for QAudioFormat.normalizedSampleValue(data: bytes) | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |