treat float32 as 32 bits
This commit is contained in:
parent
ccc3fdcd26
commit
a86df369b3
1 changed files with 1 additions and 1 deletions
|
|
@ -87,6 +87,7 @@ sndioSetFmt(struct sio_par *sio, PaSampleFormat fmt)
|
||||||
{
|
{
|
||||||
switch (fmt & ~paNonInterleaved) {
|
switch (fmt & ~paNonInterleaved) {
|
||||||
case paInt32:
|
case paInt32:
|
||||||
|
case paFloat32:
|
||||||
sio->sig = 1;
|
sio->sig = 1;
|
||||||
sio->bits = 32;
|
sio->bits = 32;
|
||||||
break;
|
break;
|
||||||
|
|
@ -96,7 +97,6 @@ sndioSetFmt(struct sio_par *sio, PaSampleFormat fmt)
|
||||||
sio->bps = 3; /* paInt24 is packed format */
|
sio->bps = 3; /* paInt24 is packed format */
|
||||||
break;
|
break;
|
||||||
case paInt16:
|
case paInt16:
|
||||||
case paFloat32:
|
|
||||||
sio->sig = 1;
|
sio->sig = 1;
|
||||||
sio->bits = 16;
|
sio->bits = 16;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue