Skip to content

Commit

Permalink
Clarify docs for Block::time()
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuda committed Jun 21, 2017
1 parent f04d8be commit b4a89e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,11 @@ impl Block {
}
}

/// Returns the sample number of the first sample in the block.
/// Returns the inter-channel sample number of the first sample in the block.
///
/// The time is independent of the number of channels. To get the start time
/// of the block in seconds, divide this number by the sample rate in the
/// streaminfo.
pub fn time(&self) -> u64 {
self.first_sample_number
}
Expand Down

0 comments on commit b4a89e4

Please sign in to comment.