mirror of https://github.com/ericonr/sndio.git
initialize dev_prime to zero in rec-only mode
This commit is contained in:
parent
62d7597747
commit
60fb4a32ae
|
@ -706,7 +706,7 @@ dev_mmcstart(void)
|
|||
dev_pstate = DEV_START;
|
||||
for (s = slot_list; s != NULL; s = s->next)
|
||||
slot_start(s, dev_mmcpos);
|
||||
dev_prime = dev_bufsz / dev_round;
|
||||
dev_prime = (dev_mode & SIO_PLAY) ? dev_bufsz / dev_round : 0;
|
||||
sio_start(dev_sh);
|
||||
if (log_level >= 2)
|
||||
log_puts("started\n");
|
||||
|
|
Loading…
Reference in New Issue