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

Playback marker UI is out of sync with audio playback on repeated spacebar presses #1443

Open
1 task done
jiPku opened this issue Mar 11, 2025 · 0 comments
Open
1 task done

Comments

@jiPku
Copy link

jiPku commented Mar 11, 2025

Acknowledgement

  • I have read Getting-Started and FAQ

🐛 Describe the bug

Description:
There is a synchronization issue between the playback marker (UI) and audio playback when starting and pausing playback using the spacebar. Here is the sequence to reproduce the issue:

  1. Press the spacebar to start playback. The playback marker and audio are both in sync at this point.
  2. Press the spacebar again to pause playback. The playback marker stops at the correct position.
  3. Press the spacebar once more to resume playback.
    • Bug: The playback marker in the UI jumps back to the original starting position, while the audio continues playing from the paused position.

This issue affects multiple windows with playback markers, including the piano roll window and the main timeline. It seems to be a global synchronization problem rather than an issue specific to individual windows.

Steps to Reproduce:

  1. Open the piano roll window or main timeline.
  2. Start playback with the spacebar.
  3. Pause playback with the spacebar.
  4. Resume playback with the spacebar.

Expected Behavior:
The playback marker in the UI should resume from the paused position, staying in sync with the audio.

Observed Behavior:
The playback marker resets to its initial starting position while the audio continues playing from the correct paused position.

Environment:

  • Version: Built from the latest source code
  • OS: MacOS 15.3.1 (ARM64)
  • Additional Context: This occurs consistently across multiple windows and when using the spacebar to control playback.

标题:播放标记的 UI 在多次按下空格键后与音频播放不同步

描述
在使用空格键启动和暂停播放时,播放标记(UI)与音频播放之间存在同步问题。以下是复现问题的步骤:

  1. 按下空格键开始播放。此时播放标记和音频播放同步。
  2. 再次按下空格键暂停播放。播放标记会停在正确的位置。
  3. 第三次按下空格键恢复播放。
    • 问题:UI 中的播放标记会跳回到最初的起始位置,而音频却继续从暂停位置播放。

此问题影响多个窗口中的播放标记,包括钢琴窗和主时间轴。这似乎是一个全局同步问题,而不仅仅局限于某个具体窗口的实现。

复现步骤

  1. 打开钢琴窗或主时间轴。
  2. 使用空格键启动播放。
  3. 使用空格键暂停播放。
  4. 使用空格键恢复播放。

期望行为
UI 中的播放标记应从暂停位置恢复,与音频播放保持同步。

实际行为
播放标记回到初始起始位置,而音频从正确的暂停位置继续播放。

环境

  • 版本:基于最新源代码构建
  • 操作系统:MacOS 15.3.1 (ARM64)
  • 其他上下文:此问题在多个窗口中发生,并且使用空格键控制播放时出现。

Explains how to reproduce the bug

  1. Open the Software:

    • Launch the application by opening the compiled or pre-built version of OpenUtau on macOS 15.3.1 (ARM64).
  2. Load a Project:

    • Open a previously saved project or create a new one by adding tracks and notes to the timeline or piano roll.
  3. Navigate to the Timeline or Piano Roll:

    • Open the Main Timeline window or the Piano Roll window where playback markers are visible.
  4. Start Playback:

    • Press the spacebar to start playback. Observe that both the audio and playback marker move in sync.
  5. Pause Playback:

    • Press the spacebar again to pause playback. Confirm that the playback marker stops at the correct position, synchronized with the paused audio.
  6. Resume Playback:

    • Press the spacebar a third time to resume playback.
  7. Observe the Bug:

    • Notice that the playback marker in the UI jumps back to its initial starting position, while the audio continues playing from where it was paused. This discrepancy occurs in both the Main Timeline and the Piano Roll.
  8. 打开软件

    • 在 macOS 15.3.1 (ARM64) 系统中启动编译后的 OpenUtau 应用程序。
  9. 加载工程

    • 打开一个已保存的工程文件,或者新建一个项目,在时间轴或钢琴窗中添加音轨和音符。
  10. 进入时间轴或钢琴窗

    • 打开 主时间轴窗口钢琴窗,确保播放标记可见。
  11. 开始播放

    • 按下 空格键 启动播放,观察播放标记和音频播放是否同步移动。
  12. 暂停播放

    • 再次按下 空格键 暂停播放,确认播放标记停在正确的位置,并与暂停的音频保持同步。
  13. 恢复播放

    • 第三次按下 空格键 恢复播放。
  14. 观察问题

    • 注意到 UI 中的播放标记 跳回到最初的起始位置,而音频则继续从暂停点播放。这种不同步的现象会出现在 主时间轴窗口钢琴窗

OS & Version

macOS 15.3.1

Logs

log20250312.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant