(&self)
| 822 | self.clock_samples |
| 823 | .to_seconds(self.sample_rate, self.sample_rate_recip) |
| 824 | } |
| 825 | |
| 826 | /// Get the current time of the audio clock in frames as a range for this |
| 827 | /// processing block. |
| 828 | pub fn clock_samples_range(&self) -> Range<InstantSamples> { |
| 829 | self.clock_samples..self.clock_samples + DurationSamples(self.frames as i64) |
| 830 | } |
| 831 | |
| 832 | /// Get the current time of the audio clock in frames as a range for this |
| 833 | /// processing block. |
| 834 | pub fn clock_seconds_range(&self) -> Range<InstantSeconds> { |
| 835 | self.clock_seconds() |
| 836 | ..(self.clock_samples + DurationSamples(self.frames as i64)) |
| 837 | .to_seconds(self.sample_rate, self.sample_rate_recip) |
| 838 | } |
| 839 | |
| 840 | /// Get the playhead of the transport at the first frame in this processing |
| 841 | /// block. |
nothing calls this directly
no test coverage detected