adds support for buffersizes in webaudio and emscripten

This commit is contained in:
JoshuaBatty 2020-05-27 12:05:55 +02:00
parent cf1a928b84
commit 7c1adce330
7 changed files with 119 additions and 63 deletions

View file

@ -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.