mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -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
f67ddfba36
commit
65ab0e52ea
@ -94,10 +94,12 @@ start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
|
||||
int i;
|
||||
char *p;
|
||||
|
||||
/* Remove space if present */
|
||||
p = strchr(devin_name, ' ');
|
||||
if(p != NULL)
|
||||
*p = '\0';
|
||||
|
||||
/* If there is a '/' in the name assume it is /dev/name */
|
||||
p = strchr(devin_name, '/');
|
||||
if(p != NULL)
|
||||
snprintf(dsp_in, MAXDSPNAME, "%s", devin_name); /* assume /dev/... */
|
||||
@ -259,7 +261,7 @@ oss_loop(int *iarg)
|
||||
|
||||
if(*(data.TxOK) && (!TxOKz)) {
|
||||
nsec = (int)stime;
|
||||
n = nsec/(*(data.trperiod));
|
||||
n = nsec / *(data.trperiod);
|
||||
ic = (int)(stime - *(data.trperiod) * n) * data.nfs;
|
||||
ic = ic % *(data.nwave);
|
||||
}
|
||||
@ -283,7 +285,6 @@ oss_loop(int *iarg)
|
||||
} else {
|
||||
memset(tx_buf, 0, AUDIOBUFSIZE);
|
||||
}
|
||||
|
||||
if(write(data.fd_out, tx_buf, AUDIOBUFSIZE) < 0) {
|
||||
fprintf(stderr, "Can't write to soundcard.\n");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user