]> code.delx.au - pulseaudio/commitdiff
document in which direction we round
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Aug 2008 15:52:08 +0000 (17:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Aug 2008 15:52:08 +0000 (17:52 +0200)
src/pulse/sample.h

index 2680cf7ed8e2b1685393503805f1c41809ca501c..7061272cabb84eb3a74ceda44ec03e2ac571974e 100644 (file)
@@ -183,10 +183,14 @@ size_t pa_frame_size(const pa_sample_spec *spec) PA_GCC_PURE;
 /** Return the size of a sample with the specific sample type */
 size_t pa_sample_size(const pa_sample_spec *spec) PA_GCC_PURE;
 
-/** Calculate the time the specified bytes take to play with the specified sample type */
+/** Calculate the time the specified bytes take to play with the
+ * specified sample type. The return value will always be rounded
+ * down for non-integral return values. */
 pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE;
 
-/** Calculates the number of bytes that are required for the specified time. \since 0.9 */
+/** Calculates the number of bytes that are required for the specified
+ * time. The return value will always be rounded down for non-integral
+ * return values. \since 0.9 */
 size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) PA_GCC_PURE;
 
 /** Return non-zero when the sample type specification is valid */