Skip to content

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

Closed

Description

@SteveDaulton

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

Activity

  1. added
    AU3-bug
    on Oct 10, 2022
  2. petersampsonaudacity commented on Oct 10, 2022

    @petersampsonaudacity

    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

  3. DavidBailes commented on Oct 10, 2022

    @DavidBailes
    Collaborator

    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

  4. petersampsonaudacity commented on Oct 10, 2022

    @petersampsonaudacity

    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

  5. added
    regression
    on Oct 10, 2022
  6. DavidBailes commented on Oct 11, 2022

    @DavidBailes
    Collaborator

    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.

  7. petersampsonaudacity commented on Oct 11, 2022

    @petersampsonaudacity

    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

  8. SteveDaulton commented on Oct 11, 2022

    @SteveDaulton
    MemberAuthor

    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).

  9. Paul-Licameli commented on Oct 13, 2022

    @Paul-Licameli
    Collaborator

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

  10. SteveDaulton commented on Oct 13, 2022

    @SteveDaulton
    MemberAuthor

    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.

  11. added this to the Audacity 3.3 milestone on Oct 14, 2022
  12. DavidBailes commented on Oct 25, 2022

    @DavidBailes
    Collaborator

    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.

  13. 1 remaining item

  14. moved this from Todo to Review in progress in Kanban boardon Oct 25, 2022
  15. petersampsonaudacity commented on Oct 25, 2022

    @petersampsonaudacity

    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

  16. moved this from Review in progress to Ready for merge in Kanban boardon Oct 26, 2022
  17. moved this from Ready for merge to Ready for QA in Kanban boardon Oct 26, 2022
  18. moved this from Ready for QA to In QA in Kanban boardon Oct 27, 2022
  19. self-assigned this
    on Oct 27, 2022
  20. moved this from In QA to Ready for merge in Kanban boardon Oct 31, 2022
  21. miller-panda commented on Oct 31, 2022

    @miller-panda

    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

  22. Repository owner moved this from Ready for merge to Done in Kanban boardon Oct 31, 2022
  23. moved this from Done to Ready for merge in Kanban boardon Oct 31, 2022
  24. moved this from Ready for merge to Done in Kanban boardon Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AU3-bugP3regression

Type

No type

Fields

Priority

None yet

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions