summaryrefslogtreecommitdiffstats
path: root/polyp/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
commit92bf0a365a3a8390bb3f023458a9e62c31849628 (patch)
tree23adcb50a438e13a0f3d46d492a2992b13b8f962 /polyp/sample.h
parentb6b428e5cbfc2440f5950c0744e15bc4d84e6b31 (diff)
latency work
major main loop bugfix git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@154 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.h')
-rw-r--r--polyp/sample.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/sample.h b/polyp/sample.h
index 459f8a30..28ae51ea 100644
--- a/polyp/sample.h
+++ b/polyp/sample.h
@@ -66,6 +66,9 @@ struct pa_sample_spec {
uint8_t channels; /**< Audio channels. (1 for mono, 2 for stereo, ...) */
};
+/** Type for usec specifications */
+typedef uint32_t pa_usec_t;
+
/** Return the amount of bytes playback of a second of audio with the speicified sample type takes */
size_t pa_bytes_per_second(const struct pa_sample_spec *spec);
@@ -73,7 +76,7 @@ size_t pa_bytes_per_second(const struct pa_sample_spec *spec);
size_t pa_frame_size(const struct pa_sample_spec *spec);
/** Calculate the time the specified bytes take to play with the specified sample type */
-uint32_t pa_bytes_to_usec(size_t length, const struct pa_sample_spec *spec);
+pa_usec_t pa_bytes_to_usec(size_t length, const struct pa_sample_spec *spec);
/** Return non-zero when the sample type specification is valid */
int pa_sample_spec_valid(const struct pa_sample_spec *spec);