mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-03 10:26:42 +00:00
Add log message for audio buffer discontinuity
This commit is contained in:
1 parent
3ceee008f3
commit
2c44c4dbd2
1 file changed
+4
@@ -543,6 +543,10 @@ namespace platf::audio {
|
||||
return capture_e::error;
|
||||
}
|
||||
|
||||
if (buffer_flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY) {
|
||||
BOOST_LOG(debug) << "Audio capture signaled buffer discontinuity";
|
||||
}
|
||||
|
||||
sample_aligned.uninitialized = std::end(sample_buf) - sample_buf_pos;
|
||||
auto n = std::min(sample_aligned.uninitialized, block_aligned.audio_sample_size * channels);
|
||||
|
||||
|
||||
Reference in new issue
Block a user