File tree Expand file tree Collapse file tree 6 files changed +56
-15
lines changed Expand file tree Collapse file tree 6 files changed +56
-15
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ tap = "1"
20
20
thiserror = " 1"
21
21
tokio = { version = " 1" , features = [" rt-multi-thread" , " macros" ] }
22
22
tracing = " 0.1"
23
- decal = { git = " https://github.com/aschey/decal" , rev = " 44d9826ab22ffd2fcb804bf188ff5747c06a607e " }
23
+ decal = { git = " https://github.com/aschey/decal" , rev = " 0c2313a0f70d6fa78568ebac0146df6c0e95b450 " }
24
24
25
25
[dev-dependencies ]
26
26
assert_matches = " 1.5.0"
Original file line number Diff line number Diff line change 1
1
#![ no_main]
2
- use libfuzzer_sys:: { arbitrary:: Arbitrary , fuzz_target} ;
3
- use libplatune_player:: {
4
- platune_player:: { PlatunePlayer , Settings } ,
5
- CpalOutput ,
6
- } ;
2
+ use std:: env:: current_dir;
3
+ use std:: time:: Duration ;
4
+
5
+ use libfuzzer_sys:: arbitrary:: Arbitrary ;
6
+ use libfuzzer_sys:: fuzz_target;
7
+ use libplatune_player:: platune_player:: { PlatunePlayer , Settings } ;
8
+ use libplatune_player:: CpalOutput ;
7
9
use once_cell:: sync:: Lazy ;
8
- use std:: { env:: current_dir, time:: Duration } ;
9
10
use tokio:: runtime:: Runtime ;
10
11
11
12
#[ derive( Arbitrary , Debug ) ]
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ mod http_stream_reader;
5
5
mod player;
6
6
mod settings;
7
7
mod two_way_channel;
8
- pub use decal:: output:: { AudioBackend , CpalOutput , MockOutput } ;
8
+ pub use decal:: output:: { AudioBackend , CubebOutput , MockOutput } ;
9
9
10
10
pub mod platune_player {
11
11
use std:: fs:: remove_file;
12
12
use std:: thread;
13
13
use std:: time:: Duration ;
14
14
15
- use decal:: output:: { AudioBackend , DeviceTrait , HostTrait } ;
15
+ use decal:: output:: { AudioBackend , Device , Host } ;
16
16
use derivative:: Derivative ;
17
17
use tap:: TapFallible ;
18
18
use thiserror:: Error ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use libplatune_management::manager::Manager;
22
22
#[ cfg( feature = "player" ) ]
23
23
use libplatune_player:: platune_player:: PlatunePlayer ;
24
24
#[ cfg( feature = "player" ) ]
25
- use libplatune_player:: CpalOutput ;
25
+ use libplatune_player:: CubebOutput ;
26
26
use platuned:: MAIN_SERVER_PORT ;
27
27
use tonic:: transport:: Server ;
28
28
use tonic_reflection:: server:: Builder ;
@@ -49,7 +49,7 @@ enum Transport {
49
49
#[ derive( Clone ) ]
50
50
struct Services {
51
51
#[ cfg( feature = "player" ) ]
52
- player : Arc < PlatunePlayer < CpalOutput > > ,
52
+ player : Arc < PlatunePlayer < CubebOutput > > ,
53
53
#[ cfg( feature = "management" ) ]
54
54
manager : FileWatchManager ,
55
55
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::time::Duration;
5
5
use daemon_slayer:: server:: { BroadcastEventStore , EventStore , Signal } ;
6
6
use futures:: StreamExt ;
7
7
use libplatune_player:: platune_player:: * ;
8
- use libplatune_player:: CpalOutput ;
8
+ use libplatune_player:: CubebOutput ;
9
9
use tokio:: sync:: broadcast:: error:: RecvError ;
10
10
use tonic:: { Request , Response , Status } ;
11
11
use tracing:: { error, info} ;
@@ -15,13 +15,13 @@ use crate::rpc::event_response::*;
15
15
use crate :: rpc:: * ;
16
16
17
17
pub struct PlayerImpl {
18
- player : Arc < PlatunePlayer < CpalOutput > > ,
18
+ player : Arc < PlatunePlayer < CubebOutput > > ,
19
19
shutdown_rx : BroadcastEventStore < Signal > ,
20
20
}
21
21
22
22
impl PlayerImpl {
23
23
pub fn new (
24
- player : Arc < PlatunePlayer < CpalOutput > > ,
24
+ player : Arc < PlatunePlayer < CubebOutput > > ,
25
25
shutdown_rx : BroadcastEventStore < Signal > ,
26
26
) -> Self {
27
27
PlayerImpl {
You can’t perform that action at this time.
0 commit comments