Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SecondaryBuffer类中的Volume-Property似乎很奇怪,因为-4000左右的值是0%,0是100%,我怎样才能将Volume设置为精确的百分比或获得最低的Volume来自己做呢?
假设您的百分比是 0 和 1 之间的两倍并命名为 volumePercentage:
double adjustedVolume = (1d - volumePercentage) * -4000d;