commit | 799afaf11c613ff18e230086a5e07c6f05ae9396 | [log] [tgz] |
---|---|---|
author | Ryan C. Gordon <icculus@icculus.org> | Tue May 15 01:35:53 2018 -0400 |
committer | Ryan C. Gordon <icculus@icculus.org> | Tue May 15 01:35:53 2018 -0400 |
tree | 58f62516e425a4939420011fecf2e41aba58fd66 | |
parent | 3ca98abf968e666911d7a3b056a2a8ea83aeb39b [diff] |
audio: float to int converters should clamp inclusively. If we have to test if a sample is > 1.0f anyhow, we might as well use this to avoid the unnecessary multiplication when it's == 1.0f, too. (etc). --HG-- extra : rebase_source : efee952e0b5cd3f96c68b80158bcee6f9c66b241 extra : histedit_source : d60200ad2713377a0f8a322e5a0ce59a003fe575