| 204 | } |
| 205 | |
| 206 | static int PopCount(int64_t v) { |
| 207 | int c = 0; |
| 208 | for (size_t i = 0; i < 64; i++) { |
| 209 | if (v & 1) |
| 210 | c++; |
| 211 | v >>= 1; |
| 212 | } |
| 213 | return c; |
| 214 | } |
| 215 | |
| 216 | void FFMS_AudioSource::SetOutputFormat(FFMS_ResampleOptions const& opt) { |
| 217 | if (opt.SampleRate != AP.SampleRate) |