Update the effective format, for insertion of more samples into the sequence ! `GetEffective()` will not necessarily equal the given value, because the invariant will be preserved, and also `GetEffective()` will never become narrower than before: if any material in the sequence had a wider format, assume that the whole sequence still requires dithering to lesser formats than that. */
| 96 | a wider format, assume that the whole sequence still requires dithering to lesser formats than that. |
| 97 | */ |
| 98 | void UpdateEffective(sampleFormat effective) |
| 99 | { |
| 100 | if (effective > m_Effective) |
| 101 | m_Effective = std::min(effective, m_Stored); |
| 102 | } |
| 103 | |
| 104 | private: |
| 105 | sampleFormat m_Effective; |
no test coverage detected