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

optimize volume code #585

Merged
merged 1 commit into from
Jan 11, 2025
Merged

optimize volume code #585

merged 1 commit into from
Jan 11, 2025

Conversation

xxfttkx
Copy link
Contributor

@xxfttkx xxfttkx commented Jan 11, 2025

优化音量控制代码。

问个问题,有的番剧就算音量拉满也感觉还是太小声。我尝试把volume的最大值改成200,即在setVolume中value = value.clamp(0.0, 200.0);,发现是能正常工作的,似乎mpv支持这种设置。项目是否考虑这个功能。

@Predidit
Copy link
Owner

很棒的代码优化

不过我对允许超过 100% 的音量调节持保留意见,这看上去会使桌面和移动设备出现更多的不一致

@Predidit Predidit merged commit 46ececf into Predidit:main Jan 11, 2025
6 checks passed
@xxfttkx
Copy link
Contributor Author

xxfttkx commented Jan 11, 2025

那保持现在吧,超过100的音量设置也担心有隐患,或许感觉声音小时升级硬件是更正常的做法

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

Successfully merging this pull request may close these issues.

2 participants