mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-12 23:26:15 -05:00
- change the if logic a bit to match start_oss.c
and use memset(). git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@111 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
e7c229aed5
commit
e51c55ad98
10
jtaudio.c
10
jtaudio.c
@ -166,8 +166,8 @@ static int SoundOut( void *inputBuffer, void *outputBuffer,
|
|||||||
TxOKz=*data->TxOK;
|
TxOKz=*data->TxOK;
|
||||||
*data->Transmitting=*data->TxOK;
|
*data->Transmitting=*data->TxOK;
|
||||||
|
|
||||||
for(i=0 ; i<framesPerBuffer; i++ ) {
|
if(*data->TxOK) {
|
||||||
if(*data->TxOK) {
|
for(i=0 ; i<framesPerBuffer; i++ ) {
|
||||||
n2=data->iwave[ic];
|
n2=data->iwave[ic];
|
||||||
addnoise_(&n2);
|
addnoise_(&n2);
|
||||||
*wptr++ = n2; //left
|
*wptr++ = n2; //left
|
||||||
@ -179,10 +179,8 @@ static int SoundOut( void *inputBuffer, void *outputBuffer,
|
|||||||
*data->TxOK=0;
|
*data->TxOK=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
*wptr++ = 0; //left
|
memset((void*)outputBuffer, 0, 2*sizeof(int16_t)*framesPerBuffer);
|
||||||
*wptr++ = 0; //right
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
fivehztx_(); //Call fortran routine
|
fivehztx_(); //Call fortran routine
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user