vumonitor/vumonitor.cc
/// Context State Callback - will be invoked when the context is ready, and will
/// get sink and server information (handled by callbacks cgsi_cb
/// and cgxi_cb).
///
Context State Callback - will be invoked when the context is ready, and will
get sink and server information (handled by callbacks cgsi_cb
and cgxi_cb).
Context State Callback - will be invoked when the context is ready and will get sink and server information ( handled by callbacks cgsi_cb and cgxi_cb ) .
static void
cstt_cb(pa_context *pcontext, void *pmon)
{
    auto mon = static_cast<VU_monitor*>( pmon );
    switch ( pa_context_get_state(pcontext) ) {
        case PA_CONTEXT_READY:
            mon->context_ready(pcontext);
            break;
        case PA_CONTEXT_FAILED:
            LOG_ERROR(Lgr) << "cstt_cb: context failed";
            mon->terminate();
            break;
        case PA_CONTEXT_TERMINATED:
            LOG_ERROR(Lgr) << "cstt_cb: context terminates";
            mon->terminate();
            break;
    default:
        break;  
    }
}
static void cstt_cb ( pa_context * pcontext , void * pmon ) { auto mon = static_cast < VU_monitor * > ( pmon ) ; switch ( pa_context_get_state ( pcontext ) ) { case PA_CONTEXT_READY : mon -> context_ready ( pcontext ) ; break ; case PA_CONTEXT_FAILED : LOG_ERROR ( Lgr ) << " " ; mon -> terminate ( ) ; break ; case PA_CONTEXT_TERMINATED : LOG_ERROR ( Lgr ) << " " ; mon -> terminate ( ) ; break ; default : break ; } }
Context State Callback - will be invoked when the context is ready, and will
get sink and server information (handled by callbacks cgsi_cb
and cgxi_cb).
Context State Callback - will be invoked when the context is ready and will get sink and server information ( handled by callbacks cgsi_cb and cgxi_cb ) .
// unconnected, connecting, authorizing, setting_name