mirror of
https://github.com/RustAudio/rodio
synced 2025-03-04 15:07:18 +00:00
Fix ALSA stuttering
This commit is contained in:
parent
114509fc24
commit
010f80d082
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ fn background(rx: Receiver<Command>) {
|
|||
});
|
||||
|
||||
let mut buffer = {
|
||||
let samples_to_write = voice.get_samples_rate().0 * voice.get_channels() as u32 * FIXED_STEP_MS / 1000;
|
||||
// TODO: understand what's going on \|/
|
||||
let samples_to_write = 10 * voice.get_samples_rate().0 * voice.get_channels() as u32 * FIXED_STEP_MS / 1000;
|
||||
voice.append_data(samples_to_write as usize)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue