Skip to content

Commit 71207b0

Browse files
committed
More fixes
1 parent c28f769 commit 71207b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/yup_audio_devices/native/yup_CoreAudio_mac.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,10 +1650,12 @@ struct CoreAudioClasses
16501650
d->close();
16511651
}
16521652

1653-
void restart (AudioIODeviceCallback* cb)
1653+
void restart()
16541654
{
16551655
const ScopedLock sl (closeLock);
16561656

1657+
AudioIODeviceCallback* cb = previousCallback;
1658+
16571659
close();
16581660

16591661
auto newSampleRate = sampleRateRequested;
@@ -1791,7 +1793,7 @@ struct CoreAudioClasses
17911793
{
17921794
stopTimer();
17931795

1794-
restart (previousCallback);
1796+
restart();
17951797
}
17961798

17971799
void shutdown (const String& error)

0 commit comments

Comments
 (0)