diff options
author | Abramo Bagnara <abramo@alsa-project.org> | 2000-09-29 20:49:18 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo@alsa-project.org> | 2000-09-29 20:49:18 +0000 |
commit | 2ea3fd4bb3c63dda001a6059094cb7b6053176ac (patch) | |
tree | ffc2d53aaed5ea878bbaea8a7de32dbdcaf5fe18 /test/latency.c | |
parent | 7088f1923386f8b055cc62c5291eab6779918735 (diff) |
Completed renaming drain->stop, flush->drain (PCM). Done renaming drain->drop, flush->drain (rawmidi and seq). Removed wrong module usage count inc/dec from mmap
Diffstat (limited to 'test/latency.c')
-rw-r--r-- | test/latency.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/latency.c b/test/latency.c index 6daf446b..7d9071c6 100644 --- a/test/latency.c +++ b/test/latency.c @@ -51,7 +51,7 @@ int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int *bufsize) params.format.channels = 2; params.format.rate = USED_RATE; params.start_mode = SND_PCM_START_EXPLICIT; - params.xrun_action = SND_PCM_XRUN_ACT_DRAIN; + params.xrun_action = SND_PCM_XRUN_ACT_DROP; params.time = 1; *bufsize += 4; @@ -244,7 +244,7 @@ int main(void) if (pstatus.trigger_time.tv_sec == cstatus.trigger_time.tv_sec && pstatus.trigger_time.tv_usec == cstatus.trigger_time.tv_usec) printf("Hardware sync\n"); - snd_pcm_flush(phandle); + snd_pcm_drain(phandle); if (ok) { #if 0 printf("Playback time = %li.%i, Record time = %li.%i, diff = %li\n", |