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