r.min *= _speed_ratio;
r.max *= _speed_ratio;
#endif
- r.min += (_resampler_quality - 1);
- r.max += (_resampler_quality - 1);
+ if (type () == DataType::AUDIO) {
+ r.min += (_resampler_quality - 1);
+ r.max += (_resampler_quality - 1);
+ }
}
port_engine.set_latency_range (_port_handle, playback, r);
}
r.min /= _speed_ratio;
r.max /= _speed_ratio;
#endif
- r.min += (_resampler_quality - 1);
- r.max += (_resampler_quality - 1);
+ if (type () == DataType::AUDIO) {
+ r.min += (_resampler_quality - 1);
+ r.max += (_resampler_quality - 1);
+ }
}
DEBUG_TRACE (DEBUG::Latency, string_compose (
lr.min /= _speed_ratio;
lr.max /= _speed_ratio;
#endif
- lr.min += (_resampler_quality - 1);
- lr.max += (_resampler_quality - 1);
+ if (type () == DataType::AUDIO) {
+ lr.min += (_resampler_quality - 1);
+ lr.max += (_resampler_quality - 1);
+ }
}
DEBUG_TRACE (DEBUG::Latency, string_compose (