diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-03-21 14:41:20 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-03-22 10:35:53 +0000 |
commit | 67705ee7f3b2b51dea435943d071fd5b55366116 (patch) | |
tree | cec34712b9be59027644fe35d86ecdb68cb65686 | |
parent | 7934b7a51a411b5ad10e6e7212729188520f94b8 (diff) |
Fix QtMultimedia_audio test
The test was using some deprecated methods from Qt4. Fix is to
use the Qt5 equivalent methods.
Change-Id: Ia33747105880aa0858a37e325bc250dc598a61a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | tests/QtMultimedia/audio_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/QtMultimedia/audio_test.py b/tests/QtMultimedia/audio_test.py index 0cc06cb7..66db5e1e 100644 --- a/tests/QtMultimedia/audio_test.py +++ b/tests/QtMultimedia/audio_test.py @@ -52,10 +52,10 @@ class testAudioDevices(unittest.TestCase): fmt = QAudioFormat() for codec in devInfo.supportedCodecs(): fmt.setCodec(codec) - for frequency in devInfo.supportedFrequencies(): - fmt.setFrequency(frequency) - for channels in devInfo.supportedChannels(): - fmt.setChannels(channels) + for frequency in devInfo.supportedSampleRates(): + fmt.setSampleRate(frequency) + for channels in devInfo.supportedChannelCounts(): + fmt.setChannelCount(channels) for sampleType in devInfo.supportedSampleTypes(): fmt.setSampleType(sampleType) for sampleSize in devInfo.supportedSampleSizes(): |