aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtMultimedia/audio_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtMultimedia/audio_test.py')
-rw-r--r--tests/QtMultimedia/audio_test.py8
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():