PipelineAudioState.fromNative constructor
PipelineAudioState.fromNative(
- PipelineStateNative native
Implementation
factory PipelineAudioState.fromNative(PipelineStateNative native) {
return PipelineAudioState(
inputFormat: native.input_format,
inputSampleRate: native.input_sample_rate,
inputChannels: native.input_channels,
processingFormat: native.processing_format,
processingSampleRate: native.processing_sample_rate,
processingChannels: native.processing_channels,
outputFormat: native.output_format,
outputSampleRate: native.output_sample_rate,
outputChannels: native.output_channels,
eqEnabled: native.eq_enabled != 0,
reverbEnabled: native.reverb_enabled != 0,
limiterEnabled: native.limiter_enabled != 0,
stereoWidenEnabled: native.stereo_widen_enabled != 0,
spatializationEnabled: native.spatialization_enabled != 0,
delayEnabled: native.delay_enabled != 0,
gain: native.gain,
pan: native.pan,
pitch: native.pitch,
);
}