1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-31 19:44:54 +02:00

Move AudioIOBase::mPlaybackSchedule up into AudioIoCallback

This commit is contained in:
Paul Licameli
2020-12-17 11:27:54 -05:00
parent d92a68f076
commit 9a66255013
13 changed files with 35 additions and 33 deletions

View File

@@ -13,6 +13,7 @@ Paul Licameli split from AudacityProject.cpp
#include "AllThemeResources.h"
#include "AudioIO.h"
#include "Menus.h"
#include "Project.h"
#include "ProjectAudioIO.h"
@@ -1670,7 +1671,7 @@ void ProjectWindow::PlaybackScroller::OnTimer(wxCommandEvent &event)
// Let other listeners get the notification
event.Skip();
auto gAudioIO = AudioIOBase::Get();
auto gAudioIO = AudioIO::Get();
mRecentStreamTime = gAudioIO->GetStreamTime();
auto cleanup = finally([&]{
@@ -1724,7 +1725,7 @@ void ProjectWindow::ZoomInByFactor( double ZoomFactor )
auto &project = mProject;
auto &viewInfo = ViewInfo::Get( project );
auto gAudioIO = AudioIOBase::Get();
auto gAudioIO = AudioIO::Get();
// LLL: Handling positioning differently when audio is
// actively playing. Don't do this if paused.
if (gAudioIO->IsStreamActive(