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

暂停/播放/停止 淡入淡出 #762

Closed
mokurin000 opened this issue Jan 14, 2024 · 1 comment · Fixed by #763
Closed

暂停/播放/停止 淡入淡出 #762

mokurin000 opened this issue Jan 14, 2024 · 1 comment · Fixed by #763
Labels
FEP feeluown enhancement proposal

Comments

@mokurin000
Copy link
Contributor

mokurin000 commented Jan 14, 2024

  • 作者:@xxx
  • 创建时间:2024-01-14
  • 最近更新:2024-01-14 21:25
  • 最新状态:

简介与背景

方案概述

在暂停/播放时,500ms的S曲线音量曲线调整实现淡出/淡入
seek的交叉淡入淡出会更复杂,暂不考虑

曲线:

(1-cos(pi*tick/time))*(100/2) 淡入
(1+cos(pi*tick/time))*(100/2) 淡出
time为500ms或350ms
tick为设置音量时的时间

精准Timer:

POSIX atimer: windows环境需要使用cygwin编译该包,效果未知
asyncio.sleep: windows下有15ms的精度

@mokurin000 mokurin000 added the FEP feeluown enhancement proposal label Jan 14, 2024
@cosven
Copy link
Member

cosven commented Jan 15, 2024

@poly000 停止这样的操作不是瞬时完成么,改成淡入淡出的话,是要把停止的过程延长为几秒钟?

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

Successfully merging a pull request may close this issue.

2 participants