mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-26 22:48:09 +00:00
Add log message for audio capture buffer oveflow
This commit is contained in:
parent
2c44c4dbd2
commit
cea9f152d8
@ -550,6 +550,10 @@ namespace platf::audio {
|
||||
sample_aligned.uninitialized = std::end(sample_buf) - sample_buf_pos;
|
||||
auto n = std::min(sample_aligned.uninitialized, block_aligned.audio_sample_size * channels);
|
||||
|
||||
if (n < block_aligned.audio_sample_size * channels) {
|
||||
BOOST_LOG(warning) << "Audio capture buffer overflow";
|
||||
}
|
||||
|
||||
if (buffer_flags & AUDCLNT_BUFFERFLAGS_SILENT) {
|
||||
std::fill_n(sample_buf_pos, n, 0);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user