Skip to content

Commit

Permalink
Fix legacy numeric constants rendering errors in rust nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed May 15, 2024
1 parent 37ee83c commit a1ef5ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/backend/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ impl<'ctx> PulseStream<'ctx> {
latency_frames * stm.output_sample_spec.frame_size() as u32;

let battr = pa_buffer_attr {
maxlength: u32::max_value(),
prebuf: u32::max_value(),
fragsize: u32::max_value(),
maxlength: u32::MAX,
prebuf: u32::MAX,
fragsize: u32::MAX,
tlength: buffer_size_bytes * 2,
minreq: buffer_size_bytes / 4,
};
Expand Down Expand Up @@ -490,8 +490,8 @@ impl<'ctx> PulseStream<'ctx> {
let buffer_size_bytes =
latency_frames * stm.input_sample_spec.frame_size() as u32;
let battr = pa_buffer_attr {
maxlength: u32::max_value(),
prebuf: u32::max_value(),
maxlength: u32::MAX,
prebuf: u32::MAX,
fragsize: buffer_size_bytes,
tlength: buffer_size_bytes,
minreq: buffer_size_bytes,
Expand Down

0 comments on commit a1ef5ce

Please sign in to comment.