.aup3 Tweaks

- SQLite added to libs in readme.txt
- User message 'aup not associated' updated to 'aup3'
- Typos strind -> string, in -> is
- No translation of debug message
This commit is contained in:
James Crook 2020-07-01 12:59:38 +01:00
parent d39590cf41
commit bc50e21532
4 changed files with 12 additions and 7 deletions

View File

@ -172,6 +172,10 @@ GPL-compatible license. Specifically:
Changes tempo without changing pitch and vice versa. Changes tempo without changing pitch and vice versa.
Included in audacity Included in audacity
SQLite: Public Domain
Small and fast SQL database engine.
Included in audacity
Twolame: LGPL Twolame: LGPL
Encodes MPEG I layer 2 audio (used in DVDs and Radio). Optional separate Encodes MPEG I layer 2 audio (used in DVDs and Radio). Optional separate
download. download.

View File

@ -2215,7 +2215,7 @@ void AudacityApp::AssociateFileTypes()
int wantAssoc = int wantAssoc =
AudacityMessageBox( AudacityMessageBox(
XO( XO(
"Audacity project (.AUP) files are not currently \nassociated with Audacity. \n\nAssociate them, so they open on double-click?"), "Audacity project (.aup3) files are not currently \nassociated with Audacity. \n\nAssociate them, so they open on double-click?"),
XO("Audacity Project Files"), XO("Audacity Project Files"),
wxYES_NO | wxICON_QUESTION); wxYES_NO | wxICON_QUESTION);

View File

@ -47,7 +47,7 @@ text or binary format to a file.
// All strings are in native unicode format, 2-byte or 4-byte. // All strings are in native unicode format, 2-byte or 4-byte.
// //
// All name "lengths" are 2-byte signed, so are limited to 32767 bytes long. // All name "lengths" are 2-byte signed, so are limited to 32767 bytes long.
// All strind/data "lengths" are 4-byte signed. // All string/data "lengths" are 4-byte signed.
enum FieldTypes enum FieldTypes
{ {

View File

@ -216,7 +216,7 @@ sqlite3 *ProjectFileIO::OpenDB(FilePath fileName)
int rc = sqlite3_open(fileName, &mDB); int rc = sqlite3_open(fileName, &mDB);
if (rc != SQLITE_OK) if (rc != SQLITE_OK)
{ {
// AUD3 TODO COMPLAIN AND THROW - crash in inevitable otherwise // AUD3 TODO COMPLAIN AND THROW - crash is inevitable otherwise
return nullptr; return nullptr;
} }
@ -228,7 +228,7 @@ sqlite3 *ProjectFileIO::OpenDB(FilePath fileName)
{ {
CloseDB(); CloseDB();
// AUD3 TODO COMPLAIN AND THROW - crash in inevitable otherwise // AUD3 TODO COMPLAIN AND THROW - crash is inevitable otherwise
return nullptr; return nullptr;
} }
@ -356,7 +356,8 @@ wxString ProjectFileIO::GetValue(const char *sql)
int rc = Exec(sql, getresult, &value); int rc = Exec(sql, getresult, &value);
if (rc != SQLITE_OK) if (rc != SQLITE_OK)
{ {
wxLogDebug(wxT("SQLITE error %s"), mLastError.Translation()); wxLogDebug(wxT("%s"), mLastError.Debug());
// AUD TODO Handle error.
} }
return value; return value;
@ -380,7 +381,7 @@ bool ProjectFileIO::GetBlob(const char *sql, wxMemoryBuffer &buffer)
if (rc != SQLITE_OK) if (rc != SQLITE_OK)
{ {
wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db)); wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db));
// handle error // AUD TODO handle error
return false; return false;
} }
@ -388,7 +389,7 @@ bool ProjectFileIO::GetBlob(const char *sql, wxMemoryBuffer &buffer)
if (rc != SQLITE_ROW) if (rc != SQLITE_ROW)
{ {
wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db)); wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db));
// handle error // AUD TODO handle error
return false; return false;
} }