Feat: fixing stderr catching and scope not drawing completely
This commit is contained in:
@@ -42,6 +42,7 @@ pub struct Init {
|
||||
pub stream: Option<cpal::Stream>,
|
||||
pub analysis_handle: Option<AnalysisHandle>,
|
||||
pub midi_rx: Receiver<MidiCommand>,
|
||||
pub stream_error_rx: crossbeam_channel::Receiver<String>,
|
||||
#[cfg(feature = "desktop")]
|
||||
pub settings: Settings,
|
||||
#[cfg(feature = "desktop")]
|
||||
@@ -188,6 +189,8 @@ pub fn init(args: InitArgs) -> Init {
|
||||
seq_config,
|
||||
);
|
||||
|
||||
let (stream_error_tx, stream_error_rx) = crossbeam_channel::bounded(16);
|
||||
|
||||
let stream_config = AudioStreamConfig {
|
||||
output_device: app.audio.config.output_device.clone(),
|
||||
channels: app.audio.config.channels,
|
||||
@@ -203,6 +206,7 @@ pub fn init(args: InitArgs) -> Init {
|
||||
Arc::clone(&metrics),
|
||||
initial_samples,
|
||||
Arc::clone(&audio_sample_pos),
|
||||
stream_error_tx,
|
||||
) {
|
||||
Ok((s, info, analysis, registry)) => {
|
||||
app.audio.config.sample_rate = info.sample_rate;
|
||||
@@ -246,6 +250,7 @@ pub fn init(args: InitArgs) -> Init {
|
||||
stream,
|
||||
analysis_handle,
|
||||
midi_rx,
|
||||
stream_error_rx,
|
||||
#[cfg(feature = "desktop")]
|
||||
settings,
|
||||
#[cfg(feature = "desktop")]
|
||||
|
||||
Reference in New Issue
Block a user