Unified · Split
| @@ -173,26 +173,26 @@ sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) · 172 unmodified lines | |||
| 173 | switch (src_enum) | 173 | switch (src_enum) |
| 174 | { case SRC_SINC_BEST_QUALITY : | 174 | { case SRC_SINC_BEST_QUALITY : |
| 175 | temp_filter.coeffs = high_qual_coeffs ; | 175 | temp_filter.coeffs = high_qual_coeffs ; |
| 176 | temp_filter.coeff_half_len = (sizeof (high_qual_coeffs) / sizeof (coeff_t)) - 1 ; | 176 | temp_filter.coeff_half_len = ARRAY_LEN (high_qual_coeffs) - 1 ; |
| 177 | temp_filter.index_inc = 128 ; | 177 | temp_filter.index_inc = 128 ; |
| 178 | temp_filter.has_diffs = SRC_FALSE ; | 178 | temp_filter.has_diffs = SRC_FALSE ; |
| 179 | temp_filter.coeff_len = sizeof (high_qual_coeffs) / sizeof (coeff_t) ; | 179 | temp_filter.coeff_len = ARRAY_LEN (high_qual_coeffs) ; |
| 180 | break ; | 180 | break ; |
| 181 | 181 | ||
| 182 | case SRC_SINC_MEDIUM_QUALITY : | 182 | case SRC_SINC_MEDIUM_QUALITY : |
| 183 | temp_filter.coeffs = mid_qual_coeffs ; | 183 | temp_filter.coeffs = mid_qual_coeffs ; |
| 184 | temp_filter.coeff_half_len = (sizeof (mid_qual_coeffs) / sizeof (coeff_t)) - 1 ; | 184 | temp_filter.coeff_half_len = ARRAY_LEN (mid_qual_coeffs) - 1 ; |
| 185 | temp_filter.index_inc = 128 ; | 185 | temp_filter.index_inc = 128 ; |
| 186 | temp_filter.has_diffs = SRC_FALSE ; | 186 | temp_filter.has_diffs = SRC_FALSE ; |
| 187 | temp_filter.coeff_len = sizeof (mid_qual_coeffs) / sizeof (coeff_t) ; | 187 | temp_filter.coeff_len = ARRAY_LEN (mid_qual_coeffs) ; |
| 188 | break ; | 188 | break ; |
| 189 | 189 | ||
| 190 | case SRC_SINC_FASTEST : | 190 | case SRC_SINC_FASTEST : |
| 191 | temp_filter.coeffs = fastest_coeffs ; | 191 | temp_filter.coeffs = fastest_coeffs ; |
| 192 | temp_filter.coeff_half_len = (sizeof (fastest_coeffs) / sizeof (coeff_t)) - 1 ; | 192 | temp_filter.coeff_half_len = ARRAY_LEN (fastest_coeffs) - 1 ; |
| 193 | temp_filter.index_inc = 128 ; | 193 | temp_filter.index_inc = 128 ; |
| 194 | temp_filter.has_diffs = SRC_FALSE ; | 194 | temp_filter.has_diffs = SRC_FALSE ; |
| 195 | temp_filter.coeff_len = sizeof (fastest_coeffs) / sizeof (coeff_t) ; | 195 | temp_filter.coeff_len = ARRAY_LEN (fastest_coeffs) ; |
| 196 | break ; | 196 | break ; |
| 197 | 197 | ||
| 198 | default : | 198 | default : |