MCPcopy Create free account
hub / github.com/Improbable-AI/VisionProTeleop / get_audio_pts

Method get_audio_pts

avp_stream/streamer.py:483–488  ·  view source on GitHub ↗

Calculate audio PTS using sample count. Audio PTS is simply the sample count when using sample_rate as time_base.

(self, sample_count: int)

Source from the content-addressed store, hash-verified

481 return int(frame_number * self.VIDEO_CLOCK_RATE / fps)
482
483 def get_audio_pts(self, sample_count: int) -> int:
484 """
485 Calculate audio PTS using sample count.
486 Audio PTS is simply the sample count when using sample_rate as time_base.
487 """
488 return sample_count
489
490 def get_sync_timestamp(self) -> Dict[str, Any]:
491 """

Callers 1

recvMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected