MCPcopy Create free account
hub / github.com/audacity/audacity / UpdateEffective

Method UpdateEffective

libraries/lib-math/SampleFormat.h:98–102  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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
104private:
105 sampleFormat m_Effective;

Callers 5

PasteMethod · 0.80
SetSamplesMethod · 0.80
AppendNewBlockMethod · 0.80
AppendMethod · 0.80
FlushMethod · 0.80

Calls 1

minFunction · 0.70

Tested by

no test coverage detected