예제 #1
0
static void
kms_webrtc_rtp_connection_add (KmsIRtpConnection * base_rtp_conn, GstBin * bin,
    gboolean active)
{
  KmsWebRtcConnection *self = KMS_WEBRTC_CONNECTION (base_rtp_conn);

  add_tr (self->priv->rtp_tr, bin, active);
  add_tr (self->priv->rtcp_tr, bin, active);
}
예제 #2
0
static void add_pitch(const struct WBlocks *wblock, vector_t *trs, struct Notes *note, struct Pitches *pitch){
  TrackRealline2 *tr = talloc(sizeof(TrackRealline2));
  tr->p = pitch->l.p;
  tr->note = note;
  tr->pitch = pitch;
  add_tr(wblock, trs, tr);
}
예제 #3
0
static void add_note(const struct WBlocks *wblock, vector_t *trs, struct Notes *note){
  TrackRealline2 *tr = talloc(sizeof(TrackRealline2));
  tr->p = note->l.p;
  tr->note = note;
  add_tr(wblock, trs, tr);

  struct Pitches *pitch = note->pitches;
  while(pitch != NULL){
    add_pitch(wblock, trs, note, pitch);
    pitch = NextPitch(pitch);
  }
}
예제 #4
0
void Director::build_table(std::ostringstream& ss, Entries entries, const std::string& path) {
  ss << "<table class=\"table table-hover\">";
  ss << "<thead>";
  add_table_header(ss);
  ss << "</thead>";

  ss << "<tbody>";
  for(auto e : *entries) {
    add_tr(ss, path, e);
  }
  ss << "</tbody>";

  ss << "</table>";
}
예제 #5
0
static void add_stop(const struct WBlocks *wblock, vector_t *trs, struct Stops *stop){
  TrackRealline2 *tr = talloc(sizeof(TrackRealline2));
  tr->p = stop->l.p;
  tr->stop = stop;
  add_tr(wblock, trs, tr);
}