projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f718b4f
)
moved some blank space in order to exactly go back to original version
author
c vw
<dl1ycf@darc.de>
Fri, 6 Jul 2018 13:18:12 +0000
(15:18 +0200)
committer
c vw
<dl1ycf@darc.de>
Fri, 6 Jul 2018 13:18:12 +0000
(15:18 +0200)
vox.c
patch
|
blob
|
history
vox.h
patch
|
blob
|
history
diff --git
a/vox.c
b/vox.c
index 204c9b516d1616bc56845fe2a02d75dbe0d5130b..5b9cbb2292c623f2b743b00ae89109a3d33ff553 100644
(file)
--- a/
vox.c
+++ b/
vox.c
@@
-36,6
+36,7
@@
static int vox_timeout_cb(gpointer data) {
return FALSE;
}
+
double vox_get_peak() {
double result=peak;
return result;
@@
-48,7
+49,6
@@
void update_vox(TRANSMITTER *tx) {
int i;
double sample;
peak=0.0;
-
for(i=0;i<tx->buffer_size;i++) {
sample=tx->mic_input_buffer[i*2];
if(sample<0.0) {
diff --git
a/vox.h
b/vox.h
index e6a1f3fa277d19c2a76ad1ea5091c3558942f676..34bd48e24c85a00ed01a955f5a4297b1c66879f1 100644
(file)
--- a/
vox.h
+++ b/
vox.h
@@
-19,5
+19,4
@@
extern void update_vox(TRANSMITTER *tx);
extern void vox_cancel();
-extern void vox_cw_cancel();
extern double vox_get_peak();