mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Remove round from pulse get_latency_pcm, floor math is fine
This commit is contained in:
parent
74b52e83fa
commit
0bdfa726ca
1 changed files with 3 additions and 3 deletions
|
@ -140,9 +140,9 @@ impl Sink for PulseAudioSink {
|
|||
self.sink
|
||||
.as_mut()
|
||||
.and_then(|sink| {
|
||||
sink.get_latency().ok().map(|micro_sec| {
|
||||
(micro_sec.as_secs_f64() * DECODER_SAMPLE_RATE as f64).round() as u64
|
||||
})
|
||||
sink.get_latency()
|
||||
.ok()
|
||||
.map(|micro_sec| (micro_sec.as_secs_f64() * DECODER_SAMPLE_RATE as f64) as u64)
|
||||
})
|
||||
.unwrap_or(0)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue