Removed the "delay" additions to "stime"; kept "delay" for potential

future use.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@125 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2006-02-05 16:13:27 +00:00
parent 7167638ee4
commit f8510d4202

View File

@ -338,7 +338,7 @@ int playback_callback(alsa_driver_t *alsa_driver_playback) {
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
stime = (double) tv.tv_sec + ((double)tv.tv_usec / 1000000.0) + stime = (double) tv.tv_sec + ((double)tv.tv_usec / 1000000.0) +
*(this->ndsec) * 0.1; *(this->ndsec) * 0.1;
stime = stime + ((double)delay / (double)(this->output_sample_rate)); // stime = stime + ((double)delay / (double)(this->output_sample_rate));
*(this->Tsec) = stime; *(this->Tsec) = stime;
//printf("PLAY:TIME, %lf, %ld, %ld, %d\n", stime, delay, this->output_sample_rate, *this->ndsec); //printf("PLAY:TIME, %lf, %ld, %ld, %d\n", stime, delay, this->output_sample_rate, *this->ndsec);
if(!(this->tx_starting) && (*(this->tx_ok)) ) { if(!(this->tx_starting) && (*(this->tx_ok)) ) {
@ -409,7 +409,7 @@ int capture_callback(alsa_driver_t *alsa_driver_capture) {
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
stime = (double) tv.tv_sec + ((double)tv.tv_usec / 1000000.0) + stime = (double) tv.tv_sec + ((double)tv.tv_usec / 1000000.0) +
*(this->ndsec) * 0.1; *(this->ndsec) * 0.1;
stime = stime - ((double)delay / (double)(this->output_sample_rate)); // stime = stime - ((double)delay / (double)(this->output_sample_rate));
*(this->Tsec) = stime; *(this->Tsec) = stime;
ib=*(this->ibuf); ib=*(this->ibuf);
this->tbuf[ib] = stime; this->tbuf[ib] = stime;