1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CoreAudioIODevice: Make stopAndGetLastCallback() private

This commit is contained in:
reuk 2024-05-07 14:29:25 +01:00
parent 0444e3d69c
commit f2449cb092
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -1335,16 +1335,6 @@ public:
stopAndGetLastCallback();
}
AudioIODeviceCallback* stopAndGetLastCallback() const
{
auto* lastCallback = internal->stop (true);
if (lastCallback != nullptr)
lastCallback->audioDeviceStopped();
return lastCallback;
}
AudioIODeviceCallback* stopInternal()
{
restartDevice = true;
@ -1413,6 +1403,16 @@ private:
BigInteger inputChannelsRequested, outputChannelsRequested;
CriticalSection closeLock;
AudioIODeviceCallback* stopAndGetLastCallback() const
{
auto* lastCallback = internal->stop (true);
if (lastCallback != nullptr)
lastCallback->audioDeviceStopped();
return lastCallback;
}
void timerCallback() override
{
stopTimer();