mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
NO FILL mode selected...
This commit is contained in:
parent
883678c5e3
commit
9d8af2f147
1 changed files with 6 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue