summaryrefslogtreecommitdiffstats
path: root/src/multimedia/windows
Commit message (Collapse)AuthorAgeFilesLines
...
* Extract QWindowsVideoDevices from QWindowsMediaDevicesPiotr Srebrny2022-05-122-221/+2
| | | | | | | | | This patch implments the split of QPlatformMediaDevice to audio and video devices for the Windows platform. Change-Id: I5976b96ce0b789637cfe6fffc5f52c875b6bc73b Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Windows: Fix audio buffer sizesAndré de la Rocha2022-05-081-8/+5
| | | | | | | | | | | | | | | Audio buffer sizes were being calculated in a way that could result in buffer sizes that were not a multiple of the audio frame size. For instance, a buffer with an odd number of bytes could be used for holding 16-bit audio data, which would result in the audio data contained on half of buffers received by applications being shifted by half a sample, causing applications to misinterpret that audio data. Pick-to: 6.3 6.2 Fixes: QTBUG-102843 Change-Id: I252384cb99fffca5e068b0b14e4be9b0469962ec Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Move the low level audio integration back into Qt MultimediaLars Knoll2022-04-2917-0/+3619
Those integrations are selected at compile time and not dependent on native vs ffmpeg backend. Because of that we can move them back into Qt Multimedia directly. This will simplify and improve a couple of things: * We don't need to build the audio code twice (once per plugins) * Low level audio is always available even if you choose not to ship a large backend for audio/video decoding and recording * We can use Qt Multimedia as a backend for other modules requiring audio only without bloating things there (e.g. for Qt Speech) * We can directly integrate support for 3D audio and headphone spatialization into Qt Multimedia without requiring an additional module for that. To do so, we need to remove the camera handling from QPlatformMediaDevices. This is only partially done in this commit (by adding a QPlatformVideoDevices class), and will be further cleaned up in followup commits. Change-Id: Ib4a33d7255faaf26dd825527786eae10ed283490 Reviewed-by: Lars Knoll <lars.knoll@qt.io>