MCPcopy Create free account
hub / github.com/audacity/audacity / CheckFileName

Method CheckFileName

modules/import-export/mod-mp3/ExportMP3.cpp:1753–1771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1751}
1752
1753bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format)) const
1754{
1755#ifndef DISABLE_DYNAMIC_LOADING_LAME
1756 MP3Exporter exporter;
1757
1758 if (!exporter.LoadLibrary(wxTheApp->GetTopWindow(), MP3Exporter::Maybe)) {
1759 BasicUI::ShowMessageBox(XO("Could not open MP3 encoding library!"),
1760 BasicUI::MessageBoxOptions()
1761 .IconStyle(BasicUI::Icon::Error)
1762 .Caption(XO("Error")));
1763 gPrefs->Write(wxT("/MP3/MP3LibPath"), wxString(wxT("")));
1764 gPrefs->Flush();
1765
1766 return false;
1767 }
1768#endif // DISABLE_DYNAMIC_LOADING_LAME
1769
1770 return true;
1771}
1772
1773bool MP3ExportProcessor::Initialize(AudacityProject& project,
1774 const Parameters& parameters,

Callers

nothing calls this directly

Calls 5

ShowMessageBoxFunction · 0.85
MessageBoxOptionsClass · 0.85
wxStringClass · 0.50
WriteMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected