File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,8 @@ hound = "3.0"
18
18
error-chain = " 0.7"
19
19
parking_lot = " 0.3"
20
20
uuid = { version = " 0.3" , features = [" v4" ] }
21
+
22
+ [features ]
23
+
24
+ 512-players = []
25
+ 128-channels = []
Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ pub const MAX_PLAYERS: usize = 256;
42
42
#[ cfg( feature = "512-players" ) ]
43
43
pub const MAX_PLAYERS : usize = 512 ;
44
44
/// The maximum amount of channels that can be created.
45
+ ///
46
+ /// Can be increased to 128 with the `128-channels` feature.
47
+ #[ cfg( not( feature = "128-channels" ) ) ]
45
48
pub const MAX_CHANS : usize = 64 ;
49
+ #[ cfg( feature = "128-channels" ) ]
50
+ pub const MAX_CHANS : usize = 128 ;
46
51
/// The size of a stream's buffer, in samples.
47
52
pub const STREAM_BUFFER_SIZE : usize = 100_000 ;
48
53
/// The size of the communication buffer between audio thread and main thread, in messages.
You can’t perform that action at this time.
0 commit comments