Skip to content
  • Hugo Lefeuvre's avatar
    audio_rtp_session: code cleanup · 27166567
    Hugo Lefeuvre authored
    
    
    Use const std::chrono::milliseconds type for secondsPerPaket_
    instead of defining seconds =
    std::chrono::duration<double, std::ratio<1>>. That way we avoid some
    useless casts later.
    
    Change type of sent_samples to uint64_t: unsigned is kind of small for
    this usage and getNextTimestamps expects seq of type uint64_t.
    
    Simplify code in readFunction() and process().
    
    Change-Id: I6ac7fd1b4553cfe5982a3d05a6467b8085f758a4
    Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
    27166567