(&mut self, timeout: Duration)
| 580 | bevy_platform::thread::sleep(core::time::Duration::from_millis(1)); |
| 581 | } |
| 582 | |
| 583 | Ok(()) |
| 584 | } |
| 585 | |
| 586 | /// Information about the running audio stream. |
| 587 | /// |
| 588 | /// Returns `None` if the context is not currently active. |
| 589 | pub fn stream_info(&self) -> Option<&StreamInfo> { |
| 590 | if self.is_active() { |
| 591 | self.stream_info.as_ref() |
| 592 | } else { |
| 593 | None |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | /// Get the "heartbeat" of the processor. This is equal to the total number of samples |
| 598 | /// that the processor has processed. |
| 599 | /// |
no test coverage detected