1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

CoreAudioIODevice: Make stopAndGetLastCallback() private

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

View file

@ -1323,16 +1323,6 @@ public:
stopAndGetLastCallback();
}
AudioIODeviceCallback* stopAndGetLastCallback() const
{
auto* lastCallback = internal->stop (true);
if (lastCallback != nullptr)
lastCallback->audioDeviceStopped();
return lastCallback;
}
AudioIODeviceCallback* stopInternal()
{
restartDevice = true;
@ -1401,6 +1391,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();