adds support for buffersizes in webaudio and emscripten
This commit is contained in:
parent
cf1a928b84
commit
7c1adce330
7 changed files with 119 additions and 63 deletions
|
|
@ -200,13 +200,11 @@ pub struct StreamConfig {
|
|||
}
|
||||
|
||||
/// Describes the minimum and maximum supported buffer size for the device
|
||||
/// and if requested buffersize must be a power of 2 value.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum SupportedBufferSize {
|
||||
Range {
|
||||
min: FrameCount,
|
||||
max: FrameCount,
|
||||
requires_power_of_two: bool,
|
||||
},
|
||||
/// In the case that the platform provides no way of getting the default
|
||||
/// buffersize before starting a stream.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue