it started working??
This commit is contained in:
parent
cc048b81df
commit
06343f84ba
1 changed files with 4 additions and 4 deletions
|
@ -51,10 +51,10 @@ pub fn audio_transmitter_main(
|
|||
|
||||
// TODO: from cli
|
||||
let mut carrier = TwoStateCarrier::new(
|
||||
320, // freq_low
|
||||
340, // freq_high
|
||||
2400, // freq_low
|
||||
2800, // freq_high
|
||||
cpal_output_config.sample_rate().0, // sample_rate
|
||||
20, // symbol_rate
|
||||
1200, // symbol_rate
|
||||
);
|
||||
|
||||
let mut leftovers: VecDeque<f64> = vec![].into();
|
||||
|
@ -196,7 +196,7 @@ fn give_output_pcm<T>(
|
|||
|
||||
while let Ok(byte) = rx_for_mod.try_recv() {
|
||||
let samps = carrier.byte_into_fsk_samples(&byte);
|
||||
trace!("new ether samps {:?}", samps);
|
||||
//trace!("new ether samps {:?}", samps);
|
||||
let mut samps_iter = samps.iter().cloned();
|
||||
while let Some(samp) = samps_iter.next() {
|
||||
if let Some(sample_to_write) = output.next() {
|
||||
|
|
Loading…
Reference in a new issue