resample by exception to lowest sync sample rate rather than highest
Adrian Smith
9 years ago
134 | 134 | break; |
135 | 135 | } |
136 | 136 | } |
137 | // else find next highest sync sample rate | |
138 | while (!outrate && i >= 0) { | |
139 | if (supported_rates[i] > raw_sample_rate && supported_rates[i] % raw_sample_rate == 0) { | |
140 | outrate = supported_rates[i]; | |
141 | break; | |
142 | } | |
143 | i--; | |
144 | } | |
137 | 145 | } |
138 | 146 | |
139 | 147 | if (!outrate) { |