File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ namespace winrt::Telegram::Native::Media::implementation
135135 {
136136 bitrate_last_ = static_cast <int64_t >(source.FileSize () / duration * 15.0 );
137137 bitrate_estimate_ = static_cast <int64_t >(source.FileSize () / duration * 15.0 );
138+ // bitrate_maximum_ = static_cast<int64_t>(source.FileSize() / duration * 60.0);
138139 }
139140 }
140141
@@ -217,8 +218,8 @@ namespace winrt::Telegram::Native::Media::implementation
217218
218219 auto prefetch_size = PrefetchSize (30.0 );
219220
220- std::wstring msg = L" Read callback start " + std::to_wstring (prefetch_size / 1024.0 / 1024.0 ) + L" MB\n " ;
221- OutputDebugString (msg.c_str ());
221+ // std::wstring msg = L"Read callback start " + std::to_wstring(prefetch_size / 1024.0 / 1024.0) + L" MB\n";
222+ // OutputDebugString(msg.c_str());
222223
223224 source.ReadCallback (count, prefetch_size, bytesRead);
224225 }
@@ -242,6 +243,7 @@ namespace winrt::Telegram::Native::Media::implementation
242243
243244 private:
244245 std::chrono::steady_clock::time_point bitrate_time_;
246+ // double bitrate_maximum_;
245247 double bitrate_estimate_;
246248 double bitrate_last_;
247249 double bitrate_warmup_;
You can’t perform that action at this time.
0 commit comments