diff options
author | Jaroslav Kysela <perex@perex.cz> | 1999-12-08 19:22:10 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 1999-12-08 19:22:10 +0000 |
commit | 9d8af2f147079fdbb0f710511a76ed1fc39c34ab (patch) | |
tree | d1da0d9c2c7d2e6b10d245f6437c1bb510b425ed /test | |
parent | 883678c5e3ceb872fe4b3e1aa4485d71de6bf513 (diff) |
NO FILL mode selected...
Diffstat (limited to 'test')
-rw-r--r-- | test/latency.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/latency.c b/test/latency.c index acc5d2d9..baf4ad18 100644 --- a/test/latency.c +++ b/test/latency.c @@ -74,9 +74,13 @@ int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int sync, int *queue) params.start_mode = SND_PCM_START_GO; params.stop_mode = SND_PCM_STOP_STOP; params.time = 1; - *queue += 16; + // *queue += 16; +#if 0 params.buf.stream.fill = SND_PCM_FILL_SILENCE; params.buf.stream.max_fill = 1024; +#else + params.buf.stream.fill = SND_PCM_FILL_NONE; +#endif if (sync) syncro_id(¶ms.sync); __again: @@ -224,6 +228,7 @@ int main(void) snd_pcm_channel_status_t pstatus, cstatus; long r; + // latency = 4096 - 16; setscheduler(); if ((err = snd_pcm_open(&phandle, pcard, pdevice, SND_PCM_OPEN_STREAM_PLAYBACK)) < 0) { printf("Playback open error: %s\n", snd_strerror(err)); |