From 1c9e5df36946fb0a7554b7f1d55ddfd10778d677 Mon Sep 17 00:00:00 2001 From: Lev Zelenskiy Date: Fri, 29 Jun 2012 16:05:19 +1000 Subject: Allow frequences up to 96000 in win32 backend. QTBUG-26102 Change-Id: I08377d49a444ca3db1d1c0ccabc00665b4480f9b Reviewed-by: Michael Goddard --- src/multimedia/audio/qaudioinput_win32_p.cpp | 2 +- src/multimedia/audio/qaudiooutput_win32_p.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multimedia/audio/qaudioinput_win32_p.cpp b/src/multimedia/audio/qaudioinput_win32_p.cpp index cb1baf8..f595928 100644 --- a/src/multimedia/audio/qaudioinput_win32_p.cpp +++ b/src/multimedia/audio/qaudioinput_win32_p.cpp @@ -224,7 +224,7 @@ bool QAudioInputPrivate::open() } else if (settings.sampleSize() <= 0) { qWarning("QAudioInput: open error, invalid sample size (%d).", settings.sampleSize()); - } else if (settings.frequency() < 8000 || settings.frequency() > 48000) { + } else if (settings.frequency() < 8000 || settings.frequency() > 96000) { qWarning("QAudioInput: open error, frequency out of range (%d).", settings.frequency()); } else if (buffer_size == 0) { diff --git a/src/multimedia/audio/qaudiooutput_win32_p.cpp b/src/multimedia/audio/qaudiooutput_win32_p.cpp index 7183747..35851a9 100644 --- a/src/multimedia/audio/qaudiooutput_win32_p.cpp +++ b/src/multimedia/audio/qaudiooutput_win32_p.cpp @@ -262,7 +262,7 @@ bool QAudioOutputPrivate::open() } else if (settings.sampleSize() <= 0) { qWarning("QAudioOutput: open error, invalid sample size (%d).", settings.sampleSize()); - } else if (settings.frequency() < 8000 || settings.frequency() > 48000) { + } else if (settings.frequency() < 8000 || settings.frequency() > 96000) { qWarning("QAudioOutput: open error, frequency out of range (%d).", settings.frequency()); } else if (buffer_size == 0) { // Default buffer size, 200ms, default period size is 40ms -- cgit v0.12