def get_info(self) -> dict: info = SoundPipeline.get_info(self) if QUEUE_TIME>0 and self.queue: clt = self.queue.get_property("current-level-time") qmax = self.queue.get_property("max-size-time") qmin = self.queue.get_property("min-threshold-time") info["queue"] = { "min" : qmin//MS_TO_NS, "max" : qmax//MS_TO_NS, "cur" : clt//MS_TO_NS, "pct" : min(QUEUE_TIME, clt)*100//qmax, "overruns" : self.overruns, "underruns" : self.underruns, "state" : self.queue_state, } info["sink"] = self.get_element_properties( self.sink, "buffer-time", "latency-time", #"next_sample", "eos_rendering", "async", "blocksize", "enable-last-sample", "max-bitrate", "max-lateness", #"processing-deadline", "qos", "render-delay", "sync", "throttle-time", "ts-offset", ) return info
def get_info(self) -> dict: info = SoundPipeline.get_info(self) if QUEUE_TIME>0 and self.queue: clt = self.queue.get_property("current-level-time") qmax = self.queue.get_property("max-size-time") qmin = self.queue.get_property("min-threshold-time") info["queue"] = { "min" : qmin//MS_TO_NS, "max" : qmax//MS_TO_NS, "cur" : clt//MS_TO_NS, "pct" : min(QUEUE_TIME, clt)*100//qmax, "overruns" : self.overruns, "underruns" : self.underruns, "state" : self.queue_state, } sink_info = info.setdefault("sink", {}) for x in ( "buffer-time", "latency-time", #"next_sample", "eos_rendering", "async", "blocksize", "enable-last-sample", "max-bitrate", "max-lateness", "processing-deadline", "qos", "render-delay", "sync", "throttle-time", "ts-offset", ): try: v = self.sink.get_property(x) if v>=0: sink_info[x] = v except Exception as e: log.warn("Warning: %s", e) return info
def get_info(self) -> dict: info = SoundPipeline.get_info(self) if self.queue: info["queue"] = { "cur": self.queue.get_property("current-level-time") // MS_TO_NS } if CUTTER_THRESHOLD > 0 and (self.min_timestamp or self.max_timestamp): info["cutter.min-timestamp"] = self.min_timestamp info["cutter.max-timestamp"] = self.max_timestamp if self.buffer_latency: for x in ("actual-buffer-time", "actual-latency-time"): v = self.src.get_property(x) if v >= 0: info[x] = v src_info = info.setdefault("src", {}) for x in ( "actual-buffer-time", "actual-latency-time", "buffer-time", "latency-time", "provide-clock", ): try: v = self.src.get_property(x) if v >= 0: src_info[x] = v except Exception as e: log.warn("Warning: %s", e) return info
def get_info(self): info = SoundPipeline.get_info(self) if QUEUE_TIME>0: clt = self.queue.get_property("current-level-time") info["queue.used_pct"] = int(min(QUEUE_TIME, clt)*100.0/QUEUE_TIME) info["queue.overruns"] = self.overruns info["queue.state"] = self.queue_state return info
def get_info(self): info = SoundPipeline.get_info(self) if self.queue: info["queue"] = {"cur" : self.queue.get_property("current-level-time")//MS_TO_NS} if self.buffer_latency: for x in ("actual-buffer-time", "actual-latency-time"): v = self.src.get_property(x) if v>=0: info[x] = v return info
def get_info(self): info = SoundPipeline.get_info(self) if QUEUE_TIME>0: clt = self.queue.get_property("current-level-time") updict(info, "queue", { "time" : int(QUEUE_TIME/MS_TO_NS), "min_time" : int(QUEUE_MIN_TIME/MS_TO_NS), "used_pct" : int(min(QUEUE_TIME, clt)*100.0/QUEUE_TIME), "used" : int(clt/MS_TO_NS), "overruns" : self.overruns, "state" : self.queue_state}) return info
def get_info(self) -> dict: info = SoundPipeline.get_info(self) if self.queue: info["queue"] = {"cur" : self.queue.get_property("current-level-time")//MS_TO_NS} if CUTTER_THRESHOLD>0 and (self.min_timestamp or self.max_timestamp): info["cutter.min-timestamp"] = self.min_timestamp info["cutter.max-timestamp"] = self.max_timestamp if self.buffer_latency: for x in ("actual-buffer-time", "actual-latency-time"): v = self.src.get_property(x) if v>=0: info[x] = v return info
def get_info(self): info = SoundPipeline.get_info(self) if QUEUE_TIME>0: clt = self.queue.get_property("current-level-time") qmax = self.queue.get_property("max-size-time") qmin = self.queue.get_property("min-threshold-time") updict(info, "queue", { "min" : qmin//MS_TO_NS, "max" : qmax//MS_TO_NS, "cur" : clt//MS_TO_NS, "pct" : min(QUEUE_TIME, clt)*100//qmax, "overruns" : self.overruns, "underruns" : self.underruns, "state" : self.queue_state}) return info
def get_info(self): info = SoundPipeline.get_info(self) if QUEUE_TIME > 0: clt = self.queue.get_property("current-level-time") updict( info, "queue", { "time": int(QUEUE_TIME / MS_TO_NS), "min_time": int(QUEUE_MIN_TIME / MS_TO_NS), "used_pct": int(min(QUEUE_TIME, clt) * 100.0 / QUEUE_TIME), "used": int(clt / MS_TO_NS), "overruns": self.overruns, "state": self.queue_state, }, ) return info
def get_info(self): info = SoundPipeline.get_info(self) if self.caps: info["caps"] = self.caps return info