1
0
Fork 0

Add an StftHelper::max_padding()

This commit is contained in:
Robbert van der Helm 2023-01-30 02:15:12 +01:00
parent e3e2a2e7d0
commit efff43df21

View file

@ -242,11 +242,16 @@ impl<const NUM_SIDECHAIN_INPUTS: usize> StftHelper<NUM_SIDECHAIN_INPUTS> {
self.main_input_ring_buffers.len()
}
/// The maximum block size supported by this `StftHelper`.
/// The maximum block size supported by this instance.
pub fn max_block_size(&self) -> usize {
self.main_input_ring_buffers.capacity()
}
/// The maximum amount of padding supported by this instance.
pub fn max_padding(&self) -> usize {
self.padding_buffers[0].capacity()
}
/// The amount of latency introduced when processing audio through this [`StftHelper`].
pub fn latency_samples(&self) -> u32 {
self.main_input_ring_buffers[0].len() as u32