Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved projects may reopen with incorrect track sample rates #6875

Closed
SteveDaulton opened this issue Jul 15, 2024 · 3 comments · Fixed by #6880
Closed

Saved projects may reopen with incorrect track sample rates #6875

SteveDaulton opened this issue Jul 15, 2024 · 3 comments · Fixed by #6880
Assignees
Labels
AU3-bug Bugs from Audacity 3 P1 Highest level priority (ship blocker / must fix) regression Bug is a regression against previous version
Milestone

Comments

@SteveDaulton
Copy link
Member

SteveDaulton commented Jul 15, 2024

Bug description

Track sample rates may change unexpectedly between sessions, causing the length and speed of clips to be incorrect.

Steps to reproduce

  1. Set the Project sample rate, and Default sample rate settings to 48kHz.
  2. Generate a 30 second chirp.
  3. Add a new track
  4. Set the sample rate of the new track to 44100Hz
  5. Generate a 30 second tone
  6. Save to disk
  7. Close Audacity
  8. Relaunch Audacity and reopen the project
  9. Apply the amplify affect to the second track
  10. Quit Audacity and select NO when prompted to save.
  11. Reopen the project

Expected behavior

The project to be in the same state as in steps 6, 7 and 8.

Actual behavior

The second track is now too short and plays at the wrong pitch (the track sample rate has changed to 48000 Hz).

Audacity Version

current master / alpha / nightly build

Operating system

Windows, Linux

Additional context

Reported on the forum with Audacity 3.5.0: https://forum.audacityteam.org/t/track-sample-rates-change-when-closing-project/111711/1
Reproduced on Linux with Audacity 3.6 alpha.

Probably related (or the same issue) as #6611 but now with steps to reproduce on current Audacity versions.

Note this bug also occurs with imported tracks.
Note also that now that the track sample rate is not shown, users that import tracks with different sample rates are unlikely to notice that the cause of the problem is due to changed track sample rates.

@SteveDaulton SteveDaulton added AU3-bug Bugs from Audacity 3 P1 Highest level priority (ship blocker / must fix) regression Bug is a regression against previous version labels Jul 15, 2024
@dozzzzer dozzzzer added this to the Audacity 3.6 milestone Jul 15, 2024
@dozzzzer
Copy link
Contributor

Bisects to 46bd0a9

@LWinterberg LWinterberg linked a pull request Jul 16, 2024 that will close this issue
6 tasks
@dozzzzer dozzzzer self-assigned this Jul 16, 2024
@chinakov
Copy link
Contributor

This is fixed on Linux, tested on Ubuntu 22.04

@dozzzzer
Copy link
Contributor

Same on Windows and MacOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AU3-bug Bugs from Audacity 3 P1 Highest level priority (ship blocker / must fix) regression Bug is a regression against previous version
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants