summaryrefslogtreecommitdiffstats
path: root/src/plugins/wasapi
Commit message (Collapse)AuthorAgeFilesLines
* Remove wasapi pluginVal Doroshchuk2020-06-2412-2303/+0
| | | | | | | | Requires WinRT support Task-number: QTBUG-74423 Change-Id: Ice9788df3e503c4c111bc6524c509e93dbf407c5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* WASAPI: Use QElapsedTimer instead of QTime in audio inputVaL Doroshchuk2020-05-292-3/+2
| | | | | Change-Id: I96e6778572e344122a13394ae9aec7a9b6d3ecb0 Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
* WASAPI: Use QElapsedTimer instead of QTimeVaL Doroshchuk2020-05-291-1/+2
| | | | | Change-Id: If0eb56350677bd49c02f0439918a5ccfcc414770 Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
* Wasapi: Always use multithreaded concurrency model in initializationVal Doroshchuk2018-05-141-3/+1
| | | | | | | | | Using apartmentthreaded model for static objects can cause not calling destructors for global objects in shared libraries. Task-number: QTBUG-67353 Change-Id: I1554203b1d7a48ff9f0c4d2f0d6246e445a07f46 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-061-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I5acdc7e0bd3729b80522dfff0f388cf2507fb111
| * Merge 5.10 into 5.10.0Oswald Buddenhagen2017-11-201-0/+23
| |\ | | | | | | | | | Change-Id: Id50796542954ded82fb265b4737d737aff033633
| * | QWasapiAudioDeviceInfo: fix QByteArray => QString conversionAlexander Ivash2017-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | QByteArray was created inside 'QWasapiUtils::availableDevices' using 'toLocal8Bit' so needs to be converted to QString via 'fromLocal8Bit' Task-number: QTBUG-64262 Change-Id: I70cdaf35dbdbee671fbf7c4e1b46b18c13ca98cc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-201-0/+23
|\ \ \ | | |/ | |/| | | | Change-Id: Icaf645e271b21320c4cb6269178d9e722092a263
| * | wasapi: Initialize COM before useVal Doroshchuk2017-11-141-0/+23
| |/ | | | | | | | | | | | | | | | | The COM library was not initialized on the calling thread before the COM library calls were made. Task-number: QTBUG-62598 Change-Id: Id6f4fc093a1ef72b6e0a3cd3a22c05cec7eaafa8 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* / Replace Q_DECL_OVERRIDE with overrideKevin Funk2017-09-224-54/+54
|/ | | | | Change-Id: I17b3650a3df5688274151c1f2c4629e4a5062028 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* wasapi: Define CLASSIC_APP_BUILD for desktop buildMaurice Kalinowski2017-03-211-1/+4
| | | | | | | | | This partly reverts 7e48870c182e66a8408bbcb4c9469d751a777daa. The define is still needed for successful compilation of the wasapi backend on windows desktop. Change-Id: I1be1c08f5dd4a4cf5e0fa2211f0f8b330b0204a9 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Remove support for WinRT 8.1 and Windows Phone 8.1Maurice Kalinowski2017-01-195-28/+1
| | | | | | Task-number: QTBUG-57288 Change-Id: I29eb9e6fa20702fc5571b9eb184ab80ca38e137d Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-09-195-101/+114
|\ | | | | | | Change-Id: I022c07dab3ded6072f7c103e299822caaf40cf34
| * wasapi: fix typo for supported ratesMaurice Kalinowski2016-09-131-1/+1
| | | | | | | | | | | | Task-number: QTBUG-55630 Change-Id: I2f5defd78fbdd57e6121dde0287b615f7db8848b Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
| * wasapi: Fix thread affinityMaurice Kalinowski2016-09-134-100/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is expected from the user side that the QIODevice passed to the audio input/output is handled in the very same thread it has been created in. Previously we used the worker thread for it. Instead, schedule handling a buffer to the GUI thread and move on. This also helps simplifying many of the emits, as they happen in the same thread as the target device. Task-number: QTBUG-55894 Change-Id: I552a7a41562dccbaae5681e3c416267165720d30 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | winrt: Fix QAudioDeviceInfo::default*Device to return name instead idMaurice Kalinowski2016-09-071-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | 3c5bbb0dac7bed3199ddddc88c0175d5a2ac1036 added the default* functions to query a default device. However, IMediaDeviceStatics can only return ids and not the device names. Hence we need to invoke availableDevices to create the internal mapping and return the device name to properly initialize audio devices afterwards. Task-number: QTBUG-55631 Change-Id: I38b9205a933de5e41296a2e5880d0379db41ad97 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-1710-110/+140
|\| | | | | | | Change-Id: Ib8d05d6e21c7beb19f618cd1edc52d248b1e43b8
| * Replaced old license headers with new and correct onesJani Heikkinen2016-08-1210-110/+140
| | | | | | | | | | | | | | | | | | | | Replaced - header.LGPL3 with header.LGPL - header.LGPL21 with header.LGPL Change-Id: If11396da6ff12e9122281c17fc4354b05a554ee5 Reviewed-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
* | Merge remote-tracking branch 'origin/5.7' into devEdward Welbourne2016-07-212-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/directshow/player/directshowiosource.cpp One side disintermediated filling a vector; the other reduced it to one entry. src/plugins/directshow/player/directshowiosource.h One side renamed a member, the other added another adjacent to it. src/plugins/pulseaudio/qpulseaudioengine.h One side added a header, the other replaced the next with a different header. Change-Id: I3a031975f5af43ca39cca571f215c612f640b7d6
| * WASAPI: remove irrelevant TODOsYoann Lopes2016-07-072-2/+0
| | | | | | | | | | | | | | | | | | The final volume conversion API has changed. In any case, we don't need to convert the volume here; the Qt volume is linear and so is the volume expected by IAudioStreamVolume. Change-Id: I6065505735a6140843dcfefd8b2e0447fc83102d Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | Improve QAudioDeviceInfo::defaultDevice().Christian Stromme2016-05-204-32/+38
|/ | | | | | | | | | | | | | | | | | | The previous implementation of QAudioDeviceInfo::defaultXDevice() would always report the first available device as the "default" one, making the order, in which devices were listed, a hidden requirement when implementing audio plugins. To make it easier and more reliable to retrieve the default device, all new plugins should implement the new QAudioSystemPluginExtension interface as well as the QAudioSystemPlugin. Devices will be chosen in the following order (first match wins): default plugin -> default device -> first available device plugins -> default device -> first available device Task-number: QTBUG-51292 Change-Id: I8ace78858976fe7c60a2c4a117ef15c4e1bb177f Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
* Add Wasapi audio backendMaurice Kalinowski2016-03-2912-0/+2250
WASAPI is a Windows audio backend for low latency audio. This backend works for WinRT as well as classic desktop apps. Task-number: QTBUG-42287 Change-Id: I7a1b7b103b64fadc50a9955a9d59443791f6d026 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>