mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-08 07:25:39 +01:00
Fewer inclusions of AudioIO.h and Import.h
This commit is contained in:
@@ -521,6 +521,15 @@ bool FileNames::IsTempDirectoryNameOK( const FilePath & Name )
|
||||
return !(NameCanonical.StartsWith( BadPath ));
|
||||
}
|
||||
|
||||
bool FileNames::IsMidi(const FilePath &fName)
|
||||
{
|
||||
const auto extension = fName.AfterLast(wxT('.'));
|
||||
return
|
||||
extension.IsSameAs(wxT("gro"), false) ||
|
||||
extension.IsSameAs(wxT("midi"), false) ||
|
||||
extension.IsSameAs(wxT("mid"), false);
|
||||
}
|
||||
|
||||
static FilePaths sAudacityPathList;
|
||||
|
||||
const FilePaths &FileNames::AudacityPathList()
|
||||
|
||||
Reference in New Issue
Block a user