Skip to content

Commit

Permalink
Add a tiny bit more buffer, just in case :p
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Mar 24, 2024
1 parent f740aa2 commit b85e0a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio/src/recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ impl BufferedRecorder {
//
// So we'll make this buffer OS relevant.
let forced_buffer = if cfg!(target_os = "windows") {
(48 * 2) * 10
(48 * 2) * 15
} else {
(48 * 2) * 25
(48 * 2) * 30
};
let user_buffer = (48 * 2) * buffer_millis;
let buffer_size = max(forced_buffer, user_buffer);
Expand Down

0 comments on commit b85e0a8

Please sign in to comment.