@@ -46,16 +46,16 @@ struct WaveformStride {
46
46
inline void store (WaveformData* data) {
47
47
for (int i = 0 ; i < ChannelCount; ++i) {
48
48
WaveformData& datum = *(data + i);
49
- datum.filtered .all = static_cast <unsigned char >(math_min (255.0 ,
49
+ datum.filtered .all = static_cast <unsigned char >(std::min (255.0 ,
50
50
m_postScaleConversion * m_overallData[i] + 0.5 ));
51
- datum.filtered .low = static_cast <unsigned char >(math_min (255.0 ,
51
+ datum.filtered .low = static_cast <unsigned char >(std::min (255.0 ,
52
52
m_postScaleConversion * m_filteredData[i][Low] + 0.5 ));
53
- datum.filtered .mid = static_cast <unsigned char >(math_min (255.0 ,
53
+ datum.filtered .mid = static_cast <unsigned char >(std::min (255.0 ,
54
54
m_postScaleConversion * m_filteredData[i][Mid] + 0.5 ));
55
- datum.filtered .high = static_cast <unsigned char >(math_min (255.0 ,
55
+ datum.filtered .high = static_cast <unsigned char >(std::min (255.0 ,
56
56
m_postScaleConversion * m_filteredData[i][High] + 0.5 ));
57
57
for (int stemIdx = 0 ; stemIdx < m_stemCount; stemIdx++) {
58
- datum.stems [stemIdx] = static_cast <unsigned char >(math_min (255.0 ,
58
+ datum.stems [stemIdx] = static_cast <unsigned char >(std::min (255.0 ,
59
59
m_postScaleConversion * m_stemData[i][stemIdx] + 0.5 ));
60
60
}
61
61
}
@@ -78,17 +78,17 @@ struct WaveformStride {
78
78
if (m_averageDivisor) {
79
79
for (int i = 0 ; i < ChannelCount; ++i) {
80
80
WaveformData& datum = *(data + i);
81
- datum.filtered .all = static_cast <unsigned char >(math_min (255.0 ,
81
+ datum.filtered .all = static_cast <unsigned char >(std::min (255.0 ,
82
82
m_postScaleConversion * m_averageOverallData[i] / m_averageDivisor + 0.5 ));
83
- datum.filtered .low = static_cast <unsigned char >(math_min (255.0 ,
83
+ datum.filtered .low = static_cast <unsigned char >(std::min (255.0 ,
84
84
m_postScaleConversion * m_averageFilteredData[i][Low] /
85
85
m_averageDivisor +
86
86
0.5 ));
87
- datum.filtered .mid = static_cast <unsigned char >(math_min (255.0 ,
87
+ datum.filtered .mid = static_cast <unsigned char >(std::min (255.0 ,
88
88
m_postScaleConversion * m_averageFilteredData[i][Mid] /
89
89
m_averageDivisor +
90
90
0.5 ));
91
- datum.filtered .high = static_cast <unsigned char >(math_min (255.0 ,
91
+ datum.filtered .high = static_cast <unsigned char >(std::min (255.0 ,
92
92
m_postScaleConversion * m_averageFilteredData[i][High] /
93
93
m_averageDivisor +
94
94
0.5 ));
@@ -97,13 +97,13 @@ struct WaveformStride {
97
97
// This is the case if The Overview Waveform has more samples than the detailed waveform
98
98
for (int i = 0 ; i < ChannelCount; ++i) {
99
99
WaveformData& datum = *(data + i);
100
- datum.filtered .all = static_cast <unsigned char >(math_min (255.0 ,
100
+ datum.filtered .all = static_cast <unsigned char >(std::min (255.0 ,
101
101
m_postScaleConversion * m_overallData[i] + 0.5 ));
102
- datum.filtered .low = static_cast <unsigned char >(math_min (255.0 ,
102
+ datum.filtered .low = static_cast <unsigned char >(std::min (255.0 ,
103
103
m_postScaleConversion * m_filteredData[i][Low] + 0.5 ));
104
- datum.filtered .mid = static_cast <unsigned char >(math_min (255.0 ,
104
+ datum.filtered .mid = static_cast <unsigned char >(std::min (255.0 ,
105
105
m_postScaleConversion * m_filteredData[i][Mid] + 0.5 ));
106
- datum.filtered .high = static_cast <unsigned char >(math_min (255.0 ,
106
+ datum.filtered .high = static_cast <unsigned char >(std::min (255.0 ,
107
107
m_postScaleConversion * m_filteredData[i][High] + 0.5 ));
108
108
}
109
109
}
0 commit comments