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

"Play Cut Preview" does not exit "play mode" #3792

Closed
SteveDaulton opened this issue Oct 10, 2022 · 12 comments · Fixed by #3844
Closed

"Play Cut Preview" does not exit "play mode" #3792

SteveDaulton opened this issue Oct 10, 2022 · 12 comments · Fixed by #3844
Assignees
Labels
bug An error, undesired behaviour, or missed functionality P3 Medium Priority bugs regression Bug is a regression against previous version

Comments

@SteveDaulton
Copy link
Member

SteveDaulton commented Oct 10, 2022

Bug description

After using "Play Cut Preview" (shortcut "C"), the Play button remains "down", and non-realtime effects are greyed out.

Steps to reproduce

  1. Generate a 30 second Chirp
  2. Select a couple of seconds near the middle of the chirp
  3. Press "C"

Expected behavior

Playback to start before the selection, then skip the selection and continue playing for a short while and then "Stop" (the playback button returns to "up")

Actual behavior

Playback to start before the selection, then skip the selection and continue playing for a short while and then playback stops but the Play button remains "down" (still in "play mode").

Audacity Version

latest stable version (from audacityteam.org/download)

Operating system

Linux and W10

Additional context

No response

@SteveDaulton SteveDaulton added the bug An error, undesired behaviour, or missed functionality label Oct 10, 2022
@petersampsonaudacity
Copy link

petersampsonaudacity commented Oct 10, 2022

I cannot reproduce this on W10 with 3.2.1

nor with the latest 3.3.0 alpha build that I have: audacity-win-3.2.2-beta-20221006+df0ffd2-x64-msvc2022

@DavidBailes
Copy link
Collaborator

DavidBailes commented Oct 10, 2022

Tested on Windows 10.
Testing on different selections showed that this bug occurs often, but on some selections it doesn't occur.

This bug also occurs often, but not always on the following commands on the Transport sub menu of the extra menu:
Play before selection start
Play after selection start
Play before selection end
Play after selection end.

I so far haven't seen the bug on the commands:
Play before and after selection start
Play before and after selection end

@petersampsonaudacity
Copy link

petersampsonaudacity commented Oct 10, 2022

Ah yes @DavidBailes ...

Now on retesting on 3.2.1 and latest 3.3 alpha audacity-win-3.2.2-beta-20221006+df0ffd2-x64-msvc2022
I can get this to reliably happen with a 3 minute stereo song:

a) if I select the whole track
b) if I select some audio from the start of the track
c) if I select some audio from the end of the track
d) If I select most of the track without involving the start or end points - 2 minutes worth does thgis - but a one minute selection works ok

Update

Testing on W10 shows that this is a regression on 3.1.3 (introduced on 3.2.0)

Further update

I confirm @DavidBailes David's findings re the Extra>Transport>Play ... commands

@petersampsonaudacity petersampsonaudacity added the regression Bug is a regression against previous version label Oct 10, 2022
@petersampsonaudacity
Copy link

petersampsonaudacity commented Oct 10, 2022

@DavidBailes
Copy link
Collaborator

DavidBailes commented Oct 11, 2022

Having all these play commands which often do not exit play mode is very unhelpful to users of screen readers, who do not have access to the visual indication that Audacity is unexpectedly stuck in play mode.

@petersampsonaudacity
Copy link

petersampsonaudacity commented Oct 11, 2022

Having all these play commands which often do not exit play mode is very unhelpful to users of screen readers

I suspect that they are not very useful to most normally sighted users - especially since they are (rightly, in my view) hidden away in the normally not exposed Extra menu. I, for one certainly never use them.

But I thought that the fundamental purpose of the Extra menu that @JamesCrook was to provide a set of commands for VI/unsighted users so that thy could access them via assigning keyboard shortcuts to the ones they needed most as well as access to the Extra>Transport>Play... commands in the menu via screen readers.

image

@SteveDaulton
Copy link
Member Author

SteveDaulton commented Oct 11, 2022

I think the point that David is making is that those commands "should" exit play mode. The fact that they don't, is extremely unhelpful (and quite ironic considering that the existence of many those commands is primarily to help VI users).

@Paul-Licameli
Copy link
Member

Paul-Licameli commented Oct 13, 2022

Relliable steps to reproduce might need very precise selection starts and lengths in samples.

@SteveDaulton
Copy link
Member Author

SteveDaulton commented Oct 13, 2022

Mostly it fails for me, but yes it does appear that with some selections it exits playback mode correctly, and with others it doesn't.
I've posted a minimal example for you here: https://forum.audacityteam.org/viewtopic.php?f=70&t=127326#p457359
The difference between the regions marked "Works" and "Fails" is one sample.

@DavidBailes
Copy link
Collaborator

DavidBailes commented Oct 25, 2022

If my PR #3844 tests OK, then it would be good if this fix was included in 3.2.2, as it is a very unhelpful bug for users of screen readers.

@petersampsonaudacity
Copy link

petersampsonaudacity commented Oct 25, 2022

Testing on W10 with @DavidBailes 's branch build with the the fix for this: audacity-win-3.3.0-alpha-20221025+77e4692-x64

This now works properly with

  1. Play Cut Preview
    and also
  2. Play before selection start
  3. Play after selection start
  4. Play before selection end
  5. Play after selection end.

@crsib @LWinterberg
And I agree with David's request that if possible this fix should be pulled into 3.2.2 maintenance release

@Ryan-Miller-Audacity Ryan-Miller-Audacity self-assigned this Oct 27, 2022
@Ryan-Miller-Audacity
Copy link

Ryan-Miller-Audacity commented Oct 31, 2022

Tested and verified in David Baile's branch on windows 10 and noted the various transport options are properly exiting play mode.

Branch tested: https://github.com/DavidBailes/audacity/actions/runs/3327612104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, undesired behaviour, or missed functionality P3 Medium Priority bugs regression Bug is a regression against previous version
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants