mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 02:12:37 -04:00
I mistakenly left the simulator producing noise during the Rx sequence. Fixed.
Adjusted Rx start time by one buffer. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@96 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
6da7ae935f
commit
51a2218bdb
@ -91,7 +91,7 @@ subroutine fivehz
|
|||||||
|
|
||||||
if(ntr.ne.ntr0) then
|
if(ntr.ne.ntr0) then
|
||||||
ibuf0=ibuf !Start of new sequence, save ibuf
|
ibuf0=ibuf !Start of new sequence, save ibuf
|
||||||
ibuf0=ibuf0-3 !Tweak the Rx start time
|
ibuf0=ibuf0-2 !Tweak the Rx start time
|
||||||
if(ibuf0.lt.1) ibuf0=ibuf0+1024
|
if(ibuf0.lt.1) ibuf0=ibuf0+1024
|
||||||
! if(mode(1:4).ne.'JT65') then
|
! if(mode(1:4).ne.'JT65') then
|
||||||
! ibuf0=ibuf0+3 !So we don't copy our own Tx
|
! ibuf0=ibuf0+3 !So we don't copy our own Tx
|
||||||
|
@ -137,7 +137,6 @@ static int SoundOut( void *inputBuffer, void *outputBuffer,
|
|||||||
short *in = (short*)inputBuffer;
|
short *in = (short*)inputBuffer;
|
||||||
short *wptr = (short*)outputBuffer;
|
short *wptr = (short*)outputBuffer;
|
||||||
unsigned int i,n;
|
unsigned int i,n;
|
||||||
static short n2;
|
|
||||||
static int n0;
|
static int n0;
|
||||||
static int ia=0;
|
static int ia=0;
|
||||||
static int ib=0;
|
static int ib=0;
|
||||||
@ -179,10 +178,8 @@ static int SoundOut( void *inputBuffer, void *outputBuffer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
n2=0;
|
*wptr++ = 0; //left
|
||||||
addnoise_(&n2);
|
*wptr++ = 0; //right
|
||||||
*wptr++ = n2; //left
|
|
||||||
*wptr++ = n2; //right
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fivehztx_(); //Call fortran routine
|
fivehztx_(); //Call fortran routine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user