mirror of
https://github.com/RustAudio/rodio
synced 2024-12-13 21:52:38 +00:00
Use at least a quality of 44100
This commit is contained in:
parent
8d46180986
commit
4173ba5a08
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ impl Engine {
|
||||||
return Some(f2);
|
return Some(f2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do not go below 44100 if possible
|
||||||
|
if f1.samples_rate.0 < 44100 {
|
||||||
|
return Some(f2);
|
||||||
|
}
|
||||||
|
|
||||||
// priviledge outputs with 2 channels for now
|
// priviledge outputs with 2 channels for now
|
||||||
if f2.channels.len() == 2 && f1.channels.len() != 2 {
|
if f2.channels.len() == 2 && f1.channels.len() != 2 {
|
||||||
return Some(f2);
|
return Some(f2);
|
||||||
|
|
Loading…
Reference in a new issue