зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1395195 - Restrict min number of channels on AudioCallbackDriver's helper buffers. r=padenot
MozReview-Commit-ID: 5eAhN4x6U4q --HG-- extra : rebase_source : 0445dc820222ae51b74e277995baf423190cff7e
This commit is contained in:
Родитель
f79b06a32a
Коммит
eb4205d7a8
|
@ -561,8 +561,8 @@ StreamAndPromiseForOperation::StreamAndPromiseForOperation(MediaStream* aStream,
|
||||||
AudioCallbackDriver::AudioCallbackDriver(MediaStreamGraphImpl* aGraphImpl)
|
AudioCallbackDriver::AudioCallbackDriver(MediaStreamGraphImpl* aGraphImpl)
|
||||||
: GraphDriver(aGraphImpl)
|
: GraphDriver(aGraphImpl)
|
||||||
, mOuputChannels(mGraphImpl->AudioChannelCount())
|
, mOuputChannels(mGraphImpl->AudioChannelCount())
|
||||||
, mScratchBuffer(mOuputChannels)
|
, mScratchBuffer(std::max<uint32_t>(1, mOuputChannels))
|
||||||
, mBuffer(mOuputChannels)
|
, mBuffer(std::max<uint32_t>(1, mOuputChannels))
|
||||||
, mSampleRate(0)
|
, mSampleRate(0)
|
||||||
, mInputChannels(1)
|
, mInputChannels(1)
|
||||||
, mIterationDurationMS(MEDIA_GRAPH_TARGET_PERIOD_MS)
|
, mIterationDurationMS(MEDIA_GRAPH_TARGET_PERIOD_MS)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче