mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Updated Rodio
This commit is contained in:
parent
3ce82874a3
commit
028ca816b7
8968
Cargo.lock
generated
8968
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -116,7 +116,7 @@ ordered-float = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
rand_chacha = { workspace = true }
|
||||
rayon = { workspace = true }
|
||||
rodio = {version = "0.15", default-features = false, features = ["vorbis"]}
|
||||
rodio = {version = "0.17", default-features = false, features = ["vorbis"]}
|
||||
ron = { workspace = true }
|
||||
serde = { workspace = true, features = [ "rc" ]}
|
||||
slab = { workspace = true }
|
||||
|
@ -21,6 +21,7 @@ use crate::audio::{
|
||||
Listener,
|
||||
};
|
||||
use rodio::{OutputStreamHandle, Sample, Sink, Source, SpatialSink};
|
||||
use rodio::cpal::FromSample;
|
||||
use serde::Deserialize;
|
||||
use std::time::Instant;
|
||||
use strum::EnumIter;
|
||||
@ -88,6 +89,7 @@ impl MusicChannel {
|
||||
S::Item: Sample,
|
||||
S::Item: Send,
|
||||
<S as Iterator>::Item: std::fmt::Debug,
|
||||
f32:FromSample<<S as Iterator>::Item>,
|
||||
{
|
||||
self.tag = tag;
|
||||
self.sink.append(source);
|
||||
@ -208,6 +210,7 @@ impl AmbientChannel {
|
||||
S::Item: Sample,
|
||||
S::Item: Send,
|
||||
<S as Iterator>::Item: std::fmt::Debug,
|
||||
f32:FromSample<<S as Iterator>::Item>,
|
||||
{
|
||||
self.sink.append(source);
|
||||
}
|
||||
@ -248,6 +251,7 @@ impl SfxChannel {
|
||||
S::Item: Sample,
|
||||
S::Item: Send,
|
||||
<S as Iterator>::Item: std::fmt::Debug,
|
||||
f32:FromSample<<S as Iterator>::Item>,
|
||||
{
|
||||
self.sink.append(source);
|
||||
}
|
||||
@ -305,6 +309,7 @@ impl UiChannel {
|
||||
S::Item: Sample,
|
||||
S::Item: Send,
|
||||
<S as Iterator>::Item: std::fmt::Debug,
|
||||
f32:FromSample<<S as Iterator>::Item>,
|
||||
{
|
||||
self.sink.append(source);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user