Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Upstream Shipped a Corruption Fix. Does Updating Repair a Damaged File? How I Decided What My Tool Should Claim

说明与用途

在 Audacity 4.0.2 发布后,作者确认文件格式常量未更改,并澄清更新仅防止未来损坏,而不会修复已损坏的文件。文档和测试已同步更新。

问题

A new Audacity release (4.0.2) raised questions about whether existing code that downgrades project files needed updates and whether the release would repair already damaged files.

结果

The tool’s documentation now accurately reflects that the 4.0.2 release does not change the file format and that updating does not repair already corrupted files. Tests ensure the FAQ stays in sync with code.

工作流

  • 1. Identify constants and files the tool depends on (e.g., AUDACITY_FILE_FORMAT_VERSION, ProjectFileIO.cpp).
  • 2. Compare the 4.0.1 and 4.0.2 tags to confirm no changes to those constants or files.
  • 3. Review pull requests (PR 12544, PR 12539) to understand the corruption fixes.
  • 4. Determine the tool’s capabilities: report missing blocks, play/export gaps as silence, but cannot restore deleted audio.
  • 5. Update the FAQ to state that updating prevents future corruption but does not repair existing damaged files.
  • 6. Add tests that read the FAQ and code to ensure claims match implementation.
  • 7. Publish the updated page with citations to tags and pull requests.

证据

It does not touch AUDACITY_FILE_FORMAT_VERSION, which is still "2.0.0" at the 4.0.2 tag

来源

The short answer I put on the page is no: an update stops damage from happening again; a file already damaged stays as it is.

来源

It can report the missing block, and the number of samples it estimates are gone.

来源

  • 记录日期: 2026-11-03T03:29:10.465Z