From 981507391adc2be4b896abac24d4296201eb645d Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Thu, 30 Apr 2020 14:08:00 +0200 Subject: [PATCH] Add a table describing the source of StreamTimestamp for each host --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c2fffb4..79cefe7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -230,6 +230,16 @@ pub struct Data { /// /// **StreamInstant** represents a duration since some unspecified origin occurring either before /// or equal to the moment the stream from which it was created begins. +/// +/// ## Host `StreamInstant` Sources +/// +/// | Host | Source | +/// | ---- | ------ | +/// | alsa | `snd_pcm_status_get_htstamp` | +/// | coreaudio | `mach_absolute_time` | +/// | wasapi | `QueryPerformanceCounter` | +/// | asio | `timeGetTime` | +/// | emscripten | `AudioContext.getOutputTimestamp` | #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)] pub struct StreamInstant { secs: i64,