DEV Community

王磊
王磊

Posted on

Waveward's Guide Treats a 0-Byte -wal as an Empty Log. It Is Not an Empty Project.

A 0-byte file beside an Audacity project is easy to misread as "there is nothing here." If that file's name ends in -wal, Waveward's guide to AUP3-WAL and AUP4-WAL files says otherwise. I fetched the live HTML today. I did not drop a file, so I am not describing the on-screen notice.

The page calls a file ending in .aup3-wal or .aup4-wal SQLite's write-ahead log for the project, not a recording and not the project itself. In a table it labels "Empty (0 bytes)" as a log created when a project is opened, with nothing waiting in it. The FAQ draws the same line: SQLite creates the file empty as soon as a project is opened, and empties it again after a truncating checkpoint, so an empty one holds nothing. That is not the same thing as an empty project. I have not created a 0-byte -wal, compared one with a 0-byte .aup3 or .aup4, or watched Audacity open or close a project, so I am repeating the published wording, not a case I reproduced.

A log that does have content is a different case on the same page: it cannot be converted on its own, because it holds only the database pages that changed, not the whole project. The guide says to drop it with the project of the same name; committed changes are applied in memory, and neither file is modified. I did not pair a log with a project or export a mix.

The what-is-an-AUP3-file page puts that companion in context: an .aup3 is one SQLite database, and because it is a live database it can have a -wal beside it, plus a -shm index on Windows. The comparison table says an .aup3 should travel with its -wal if one is present. That page does not isolate the 0-byte case.

The recovery page also lists the companions: <name>-wal holds edits not yet copied into the project, and -shm is the log's index; a clean close merges and removes them. Dropped with the project, it says, the -wal's committed edits are applied. I am not reading that box as a second statement of the empty-log distinction, and I have not run a recovery.

Disclosure: I built it. Waveward is my project, not an Audacity product and not SQLite. The distinction above is Waveward's published wording. I have not dropped the files it describes.

Top comments (0)