Update to 1.4.11
This commit is contained in:
@@ -84,7 +84,7 @@ namespace tc::connection {
|
||||
void process_packet(uint16_t packet_id, const pipes::buffer_view& /* buffer */, codec::value /* codec */, bool /* head */);
|
||||
void execute_tick();
|
||||
|
||||
inline float get_volume() { return this->volume_; }
|
||||
inline float get_volume() const { return this->volume_; }
|
||||
inline void set_volume(float value) { this->volume_ = value; }
|
||||
|
||||
inline state::value state() { return this->state_; }
|
||||
@@ -121,7 +121,7 @@ namespace tc::connection {
|
||||
uint16_t last_packet_id{0xFFFF}; /* the first packet id is 0 so one packet before is 0xFFFF */
|
||||
std::chrono::system_clock::time_point last_packet_timestamp;
|
||||
|
||||
inline std::chrono::system_clock::time_point stream_timeout() {
|
||||
inline std::chrono::system_clock::time_point stream_timeout() const {
|
||||
return this->last_packet_timestamp + std::chrono::milliseconds{1000};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user