mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-11 14:41:06 +02:00
Check for valid lame lib before prompting for metadata.
This commit is contained in:
parent
e7482c74bd
commit
4e0cb1af71
@ -1557,6 +1557,7 @@ public:
|
|||||||
|
|
||||||
ExportMP3();
|
ExportMP3();
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
bool CheckFileName(wxFileName & filename, int format);
|
||||||
|
|
||||||
// Required
|
// Required
|
||||||
|
|
||||||
@ -1599,6 +1600,21 @@ void ExportMP3::Destroy()
|
|||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format))
|
||||||
|
{
|
||||||
|
MP3Exporter exporter;
|
||||||
|
|
||||||
|
if (!exporter.LoadLibrary(wxTheApp->GetTopWindow(), MP3Exporter::Maybe)) {
|
||||||
|
wxMessageBox(_("Could not open MP3 encoding library!"));
|
||||||
|
gPrefs->Write(wxT("/MP3/MP3LibPath"), wxString(wxT("")));
|
||||||
|
gPrefs->Flush();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int ExportMP3::Export(AudacityProject *project,
|
int ExportMP3::Export(AudacityProject *project,
|
||||||
int channels,
|
int channels,
|
||||||
wxString fName,
|
wxString fName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user