On Sat, Dec 15, 2018 at 12:36:22AM +0100, Jan Stary wrote:
> Why is it that
> http://cvsweb.openbsd.org/ports/audio/portaudio-svn/files/pa_sndio.c
> says
> 
>       case paInt16:
>       case paFloat32:
>               sio->sig = 1;
>               sio->bits = 16;
>               break;
> 
> ?
> 
> The 16 seems strange for Float32.
> Is that a missing stanza for paInt16?
> 

As sndio doesn't support floats, the paFloat32 case is handled with
the same code as paInt16. It would be more correct to use the paInt32
case here.

IIRC, the code predates the time when sndiod was enabled by default,
so paInt16 is probably used to maximize the chance the code to work
without sndiod running.

Reply via email to