| 151 | } |
| 152 | |
| 153 | void log_soxr_fallback(const SoxrResampleOptions & options, const std::string & reason) { |
| 154 | std::string message = options.warning_context; |
| 155 | message += " libsoxr resampling unavailable; falling back to "; |
| 156 | message += options.fallback_description; |
| 157 | message += ": "; |
| 158 | message += reason; |
| 159 | debug::log_message( |
| 160 | debug::LogLevel::Warning, |
| 161 | "audio.resample.soxr", |
| 162 | message); |
| 163 | } |
| 164 | |
| 165 | struct TorchaudioSincHannResampleKey { |
| 166 | int source_sample_rate_hz = 0; |
no test coverage detected