Take the 2-minute tour ×  I would like to use PortAudio library
to play audio data. This audio data comes from UDP paquets.  I
saw there is Pa_OpenDefaultStream() (and Pa_OpenStream() which
is pretty similar) function to open a stream :  PaStream
*stream; PaError err; /* Open an audio I/O stream. */ err =
Pa_OpenDefaultStream( &stream,                             0,
/* no input channels */                             2,
/* stereo output */                             paFloat32,  /*
32 bit floating point output */                             256,
/* frames per buffer, i.e. the number
of sample frames that PortAudio will
request from the callback. Many apps
may want to use
paFramesPerBufferUnspecified, which
tells PortAudio to pick the best,