mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Fewer inclusions of AudioIO.h and Import.h
This commit is contained in:
@@ -333,7 +333,7 @@ public:
|
||||
|
||||
for (const auto &name : sortednames) {
|
||||
#ifdef USE_MIDI
|
||||
if (Importer::IsMidi(name))
|
||||
if (FileNames::IsMidi(name))
|
||||
FileActions::DoImportMIDI(mProject, name);
|
||||
else
|
||||
#endif
|
||||
@@ -1292,7 +1292,7 @@ void ProjectManager::OpenFile(const FilePath &fileNameArg, bool addtohistory)
|
||||
|
||||
{
|
||||
#ifdef USE_MIDI
|
||||
if (Importer::IsMidi(fileName))
|
||||
if (FileNames::IsMidi(fileName))
|
||||
FileActions::DoImportMIDI( &project, fileName );
|
||||
else
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user