-
Notifications
You must be signed in to change notification settings - Fork 597
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
Labels
FEP
feeluown enhancement proposal
Comments
@poly000 停止这样的操作不是瞬时完成么,改成淡入淡出的话,是要把停止的过程延长为几秒钟? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
简介与背景
方案概述
在暂停/播放时,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的精度
The text was updated successfully, but these errors were encountered: