[Portaudio] 'Unanticipated host error' with default output device

Ross Bencina rossb-lists at audiomulch.com
Sat Nov 3 22:59:16 EDT 2018


Hi Rich,

Another thing you could try is to build PA with ASIO support only (no 
WASAPI or other host APIs) and see if you get the same error.

Ross.

On 4/11/2018 8:50 AM, Rich Eakin wrote:
> Hi Ross,
> 
> Yes, apologies for the noise in the logs - I was calling a little test 
> function before anything else that was initializing portaudio, printing 
> the device properties, then calling Pa_Terminate(). When I don't call 
> that routine, so I only get the second one within the rest of my audio 
> engine, I still end up getting the -997 asio error.
> 
> Something I find strange, is that in the test run where I pasted the 
> code to you, the buffer min/max size is 496 and then 1024. Whereas when 
> I run it now (without changing any other hardware settings), it reports 
> 1024 both times. I'll have to keep a look out to see if it ever says 496 
> again.
> 
> cheers,
> Rich
> 
> On Sat, Nov 3, 2018 at 1:04 AM Ross Bencina <rossb-lists at audiomulch.com 
> <mailto:rossb-lists at audiomulch.com>> wrote:
> 
>     Hi Rich,
> 
>     It looks like you're initializing PA twice and you get different buffer
>     sizes on each init. Is that correct?
> 
>     On 2/11/2018 6:21 PM, Rich Eakin wrote:
> 
>      > ASIO names[6]:Realtek ASIO
>      > PaAsio_Initialize: drv:6 name = Realtek ASIO
>      > PaAsio_Initialize: drv:6 inputChannels       = 2
>      > PaAsio_Initialize: drv:6 outputChannels      = 2
>      > PaAsio_Initialize: drv:6 bufferMinSize       = 496
>      > PaAsio_Initialize: drv:6 bufferMaxSize       = 496
>      > PaAsio_Initialize: drv:6 bufferPreferredSize = 496
>      > PaAsio_Initialize: drv:6 bufferGranularity   = 0
>      > PaAsio_Initialize: drv:6 defaultSampleRate = 44100.000000
>      > PaAsio_Initialize: drv:6 defaultLowInputLatency = 0.011247
>      > PaAsio_Initialize: drv:6 defaultLowOutputLatency = 0.011247
>      > PaAsio_Initialize: drv:6 defaultHighInputLatency = 0.011247
>      > PaAsio_Initialize: drv:6 defaultHighOutputLatency = 0.011247
> 
>     [snip]
> 
>      > ASIO names[6]:Realtek ASIO
>      > PaAsio_Initialize: drv:6 name = Realtek ASIO
>      > PaAsio_Initialize: drv:6 inputChannels       = 2
>      > PaAsio_Initialize: drv:6 outputChannels      = 2
>      > PaAsio_Initialize: drv:6 bufferMinSize       = 1024
>      > PaAsio_Initialize: drv:6 bufferMaxSize       = 1024
>      > PaAsio_Initialize: drv:6 bufferPreferredSize = 1024
>      > PaAsio_Initialize: drv:6 bufferGranularity   = 0
>      > PaAsio_Initialize: drv:6 defaultSampleRate = 44100.000000
>      > PaAsio_Initialize: drv:6 defaultLowInputLatency = 0.023220
>      > PaAsio_Initialize: drv:6 defaultLowOutputLatency = 0.023220
>      > PaAsio_Initialize: drv:6 defaultHighInputLatency = 0.023220
>      > PaAsio_Initialize: drv:6 defaultHighOutputLatency = 0.023220
> 
>     Cheers,
> 
>     Ross.
> 


More information about the Portaudio mailing list