mirror of https://github.com/ericonr/sndio.git
Set device rate to calculated rate.
This commit is contained in:
parent
2a451f9623
commit
7061de0250
|
@ -665,6 +665,7 @@ dev_open(char *dev, int mode, int bufsz, char *port)
|
|||
par.bps = sizeof(adata_t);
|
||||
par.msb = 0;
|
||||
par.le = SIO_LE_NATIVE;
|
||||
par.rate = rate;
|
||||
if (mode & SIO_PLAY)
|
||||
par.pchan = pmax + 1;
|
||||
if (mode & SIO_REC)
|
||||
|
|
Loading…
Reference in New Issue