On Sat, 2017-10-21 at 12:11 +0900, Shinnosuke Suzuki wrote: > Sorry for leading you to misunderstand. > > > Doesn't your compiler warn you about passing an argument of wrong type > > to pa_context_errno()? The function expects a pa_context object, but in > > the first case you're passing it a pa_stream object. > > I got warning in the first case, so I changed the code like this: > > switch(pa_stream_get_state(s)){ > case PA_STREAM_FAILED: > printf("%s\n, pa_strerror(pa_context_errno(pa_stream_get_context(s)))); > > After that, I got error â??Invalid argumentâ??. Ok, then this is starting to look less strange. You're probably giving some bad argument to the pa_stream_connect_* functions. -- Tanu https://www.patreon.com/tanuk