mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Prepare to split AudioIOBase from AudioIO...
... New files, but (almost) empty; don't use the global variable gAudioIO, but use one of two accessor function names (which are the same function for now). AudioIOBase will have fewer dependencies than AudioIO -- in particular, no dependency on tracks. It won't include StartStream. It will contain functions to query the present state of streams, and device capabilities.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "LyricsWindow.h"
|
||||
#include "Lyrics.h"
|
||||
#include "AudioIO.h"
|
||||
#include "AudioIOBase.h"
|
||||
#include "Prefs.h" // for RTL_WORKAROUND
|
||||
#include "Project.h"
|
||||
#include "ProjectAudioIO.h"
|
||||
@@ -155,6 +155,7 @@ void LyricsWindow::OnTimer(wxCommandEvent &event)
|
||||
{
|
||||
if (ProjectAudioIO::Get( *mProject ).IsAudioActive())
|
||||
{
|
||||
auto gAudioIO = AudioIOBase::Get();
|
||||
GetLyricsPanel()->Update(gAudioIO->GetStreamTime());
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user