mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 06:08:42 -05:00
- simple cleanup of style, no code changes
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@193 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
6a55a028db
commit
65f855a21e
@ -94,10 +94,12 @@ start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
|
|||||||
int i;
|
int i;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
/* Remove space if present */
|
||||||
p = strchr(devin_name, ' ');
|
p = strchr(devin_name, ' ');
|
||||||
if(p != NULL)
|
if(p != NULL)
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
|
/* If there is a '/' in the name assume it is /dev/name */
|
||||||
p = strchr(devin_name, '/');
|
p = strchr(devin_name, '/');
|
||||||
if(p != NULL)
|
if(p != NULL)
|
||||||
snprintf(dsp_in, MAXDSPNAME, "%s", devin_name); /* assume /dev/... */
|
snprintf(dsp_in, MAXDSPNAME, "%s", devin_name); /* assume /dev/... */
|
||||||
@ -259,7 +261,7 @@ oss_loop(int *iarg)
|
|||||||
|
|
||||||
if(*(data.TxOK) && (!TxOKz)) {
|
if(*(data.TxOK) && (!TxOKz)) {
|
||||||
nsec = (int)stime;
|
nsec = (int)stime;
|
||||||
n = nsec/(*(data.trperiod));
|
n = nsec / *(data.trperiod);
|
||||||
ic = (int)(stime - *(data.trperiod) * n) * data.nfs;
|
ic = (int)(stime - *(data.trperiod) * n) * data.nfs;
|
||||||
ic = ic % *(data.nwave);
|
ic = ic % *(data.nwave);
|
||||||
}
|
}
|
||||||
@ -283,7 +285,6 @@ oss_loop(int *iarg)
|
|||||||
} else {
|
} else {
|
||||||
memset(tx_buf, 0, AUDIOBUFSIZE);
|
memset(tx_buf, 0, AUDIOBUFSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(write(data.fd_out, tx_buf, AUDIOBUFSIZE) < 0) {
|
if(write(data.fd_out, tx_buf, AUDIOBUFSIZE) < 0) {
|
||||||
fprintf(stderr, "Can't write to soundcard.\n");
|
fprintf(stderr, "Can't write to soundcard.\n");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user