1
0
Fork 0
mirror of https://github.com/alemidev/scope-tui.git synced 2024-11-23 14:14:48 +01:00

fix: missing cfg gates on cpal/file features

This commit is contained in:
əlemi 2024-04-05 00:26:35 +02:00
parent 103aaba56d
commit b963aba7f9
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
use std::{io, ops::Range, time::{Duration, Instant}}; use std::{io, time::{Duration, Instant}};
use ratatui::{ use ratatui::{
style::Color, widgets::{Table, Row, Cell}, symbols::Marker, style::Color, widgets::{Table, Row, Cell}, symbols::Marker,
backend::Backend, backend::Backend,
@ -8,7 +8,7 @@ use ratatui::{
}; };
use crossterm::event::{self, Event, KeyCode, KeyModifiers}; use crossterm::event::{self, Event, KeyCode, KeyModifiers};
use crate::{display::{oscilloscope::Oscilloscope, spectroscope::Spectroscope, vectorscope::Vectorscope, Dimension, DisplayMode, GraphConfig}, input::{Matrix, DataSource}}; use crate::{display::{oscilloscope::Oscilloscope, spectroscope::Spectroscope, update_value_f, update_value_i, vectorscope::Vectorscope, Dimension, DisplayMode, GraphConfig}, input::{DataSource, Matrix}};
pub enum CurrentDisplayMode { pub enum CurrentDisplayMode {
Oscilloscope, Oscilloscope,

View file

@ -62,6 +62,7 @@ pub enum ScopeSource {
server_buffer: u32, server_buffer: u32,
}, },
#[cfg(feature = "file")]
/// use a file from filesystem and read its content /// use a file from filesystem and read its content
File { File {
/// path on filesystem of file or pipe /// path on filesystem of file or pipe
@ -72,6 +73,7 @@ pub enum ScopeSource {
limit_rate: bool, limit_rate: bool,
}, },
#[cfg(feature = "cpal")]
/// use new experimental CPAL backend /// use new experimental CPAL backend
Audio { Audio {
/// source device to attach to /// source device to attach to