Title: [294230] trunk/Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm
- Revision
- 294230
- Author
- commit-qu...@webkit.org
- Date
- 2022-05-16 05:54:14 -0700 (Mon, 16 May 2022)
Log Message
Rename MockAudioSharedInternalUnit::m_isProducingState to MockAudioSharedInternalUnit::m_internalState
https://bugs.webkit.org/show_bug.cgi?id=240450
Patch by Youenn Fablet <youe...@gmail.com> on 2022-05-16
Reviewed by Eric Carlson.
Follow-up to https://bugs.webkit.org/show_bug.cgi?id=240421 review.
No change of behavior.
* Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm:
(WebCore::MockAudioSharedInternalUnit::MockAudioSharedInternalUnit):
(WebCore::MockAudioSharedInternalUnit::~MockAudioSharedInternalUnit):
(WebCore::MockAudioSharedInternalUnit::start):
(WebCore::MockAudioSharedInternalUnit::stop):
(WebCore::MockAudioSharedInternalUnit::uninitialize):
(WebCore::MockAudioSharedInternalUnit::generateSampleBuffers):
Canonical link: https://commits.webkit.org/250588@main
Modified Paths
Diff
Modified: trunk/Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm (294229 => 294230)
--- trunk/Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm 2022-05-16 12:48:52 UTC (rev 294229)
+++ trunk/Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm 2022-05-16 12:54:14 UTC (rev 294230)
@@ -147,7 +147,7 @@
Vector<float> m_bipBopBuffer;
bool m_hasAudioUnit { false };
- Ref<MockAudioSharedInternalUnitState> m_isProducingState;
+ Ref<MockAudioSharedInternalUnitState> m_internalState;
bool m_enableEchoCancellation { true };
RunLoop::Timer<MockAudioSharedInternalUnit> m_timer;
MonotonicTime m_lastRenderTime { MonotonicTime::nan() };
@@ -188,7 +188,7 @@
}
MockAudioSharedInternalUnit::MockAudioSharedInternalUnit()
- : m_isProducingState(MockAudioSharedInternalUnitState::create())
+ : m_internalState(MockAudioSharedInternalUnitState::create())
, m_timer(RunLoop::current(), [this] { this->start(); })
, m_workQueue(WorkQueue::create("MockAudioSharedInternalUnit Capture Queue", WorkQueue::QOS::UserInteractive))
{
@@ -197,7 +197,7 @@
MockAudioSharedInternalUnit::~MockAudioSharedInternalUnit()
{
- ASSERT(!m_isProducingState->isProducingData());
+ ASSERT(!m_internalState->isProducingData());
}
OSStatus MockAudioSharedInternalUnit::initialize()
@@ -216,7 +216,7 @@
m_lastRenderTime = MonotonicTime::now();
- m_isProducingState->setIsProducingData(true);
+ m_internalState->setIsProducingData(true);
m_workQueue->dispatch([this, renderTime = m_lastRenderTime] {
generateSampleBuffers(renderTime);
});
@@ -225,7 +225,7 @@
OSStatus MockAudioSharedInternalUnit::stop()
{
- m_isProducingState->setIsProducingData(false);
+ m_internalState->setIsProducingData(false);
if (m_hasAudioUnit)
m_lastRenderTime = MonotonicTime::nan();
@@ -236,7 +236,7 @@
OSStatus MockAudioSharedInternalUnit::uninitialize()
{
- ASSERT(!m_isProducingState->isProducingData());
+ ASSERT(!m_internalState->isProducingData());
return 0;
}
@@ -311,7 +311,7 @@
nextRenderDelay = 0_s;
}
- m_workQueue->dispatchAfter(nextRenderDelay, [this, nextRenderTime, state = m_isProducingState] {
+ m_workQueue->dispatchAfter(nextRenderDelay, [this, nextRenderTime, state = m_internalState] {
if (state->isProducingData())
generateSampleBuffers(nextRenderTime);
});
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes