diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-05-12 16:06:17 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-05-14 08:17:20 +0000 |
commit | fdaa059fcc04252a533477e6af4ff139afba93ca (patch) | |
tree | 39ea3460a9f7dce828e1463b1aa2b874b48b53ff /src/multimedia/audio/qaudiosystem.cpp | |
parent | 755e23ea8ef02e4b54b10a84d150dd69575068b4 (diff) | |
download | qtmultimedia-fdaa059fcc04252a533477e6af4ff139afba93ca.tar.gz |
Get rid of QAudioInput/Output::periodSize()
The periodSize() is badly defined and one does not really
need it in the public API. Get rid of it.
Change-Id: If95f040d386ac91620c8de4f907cd206b7dad16a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/multimedia/audio/qaudiosystem.cpp')
-rw-r--r-- | src/multimedia/audio/qaudiosystem.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/multimedia/audio/qaudiosystem.cpp b/src/multimedia/audio/qaudiosystem.cpp index f9c5e41f0..2f4a92b2c 100644 --- a/src/multimedia/audio/qaudiosystem.cpp +++ b/src/multimedia/audio/qaudiosystem.cpp @@ -159,17 +159,6 @@ QT_BEGIN_NAMESPACE */ /*! - \fn virtual int QAbstractAudioOutput::periodSize() const - Returns the period size in bytes. -*/ -int QAbstractAudioOutput::periodSize() const -{ - auto f = format(); - Q_ASSERT(!f.isValid() || f.bytesForDuration(5000) > 0); - return f.bytesForDuration(5000); -} - -/*! \fn virtual void QAbstractAudioOutput::setBufferSize(qsizetype value) Sets the audio buffer size to \a value in bytes. */ @@ -285,17 +274,6 @@ void QAbstractAudioOutput::setRole(QAudio::Role role) */ /*! - \fn virtual int QAbstractAudioInput::periodSize() const - Returns the period size in bytes. -*/ -int QAbstractAudioInput::periodSize() const -{ - auto f = format(); - Q_ASSERT(!f.isValid() || f.bytesForDuration(5000) > 0); - return f.bytesForDuration(5000); -} - -/*! \fn virtual void QAbstractAudioInput::setBufferSize(qsizetype value) Sets the audio buffer size to \a value in milliseconds. */ |