vumonitor/vumonitor.cc
/// Handle an answer to the Sink query. If it contains pa_sink_info then we can
/// create a stream via newstream. (Otherwise we cannot do much.)
///
Handle an answer to the Sink query. If it contains pa_sink_info then we can
create a stream via newstream. (Otherwise we cannot do much.)
Handle an answer to the Sink query . If it contains pa_sink_info then we can create a stream via newstream . ( Otherwise we cannot do much . )
static void
cgsi_cb( pa_context*, const pa_sink_info *sink, 
                         int idx, void *objptr)
{
    if (idx < 0) {
        LOG_ERROR(Lgr) << "detected unknown sink";
    }
    else if (sink and objptr) {
        VU_monitor *mon = (VU_monitor*)(objptr);
        mon->newstream(sink);
    }
}
static void cgsi_cb ( pa_context * , const pa_sink_info * sink , int idx , void * objptr ) { if ( idx < 0 ) { LOG_ERROR ( Lgr ) << " " ; } else if ( sink and objptr ) { VU_monitor * mon = ( VU_monitor * ) ( objptr ) ; mon -> newstream ( sink ) ; } }
Handle an answer to the Sink query.
Handle an answer to the Sink query .