FreeCalypso > hg > fc-pcm-if
comparison sw/mcsi-rxtx/rx_samples.c @ 16:f422d19c0118 default tip
fc-mcsi-rxtx: fix bug in PCM sample Rx
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Oct 2024 01:41:33 +0000 |
parents | 315428573a25 |
children |
comparison
equal
deleted
inserted
replaced
15:8b49ea8aeb99 | 16:f422d19c0118 |
---|---|
18 | 18 |
19 sp = buf; | 19 sp = buf; |
20 for (n = 0; n < 160; n++) { | 20 for (n = 0; n < 160; n++) { |
21 samp = ((unsigned) sp[1] << 8) | ((unsigned) sp[0]); | 21 samp = ((unsigned) sp[1] << 8) | ((unsigned) sp[0]); |
22 rx_pcm_samples[n] = samp; | 22 rx_pcm_samples[n] = samp; |
23 sp += 2; | |
23 } | 24 } |
24 record_process(); | 25 record_process(); |
25 } | 26 } |
26 | 27 |
27 void | 28 void |