Lines Matching refs:sig_subObj
119 sig_subobj_t *sig_subObj; in sigInitialize() local
123 sig_subObj = (sig_subobj_t *) this->subObj; in sigInitialize()
124 sig_subObj->inBufSize = PICOSIG_IN_BUFF_SIZE; in sigInitialize()
125 sig_subObj->outBufSize = PICOSIG_OUT_BUFF_SIZE; in sigInitialize()
126 sig_subObj->inReadPos = 0; in sigInitialize()
127 sig_subObj->inWritePos = 0; in sigInitialize()
128 sig_subObj->outReadPos = 0; in sigInitialize()
129 sig_subObj->outWritePos = 0; in sigInitialize()
130 sig_subObj->needMoreInput = 0; in sigInitialize()
131 sig_subObj->procState = PICOSIG_COLLECT; in sigInitialize()
132 sig_subObj->retState = PICOSIG_COLLECT; in sigInitialize()
133 sig_subObj->innerProcState = 0; in sigInitialize()
134 sig_subObj->nNumFrame = 0; in sigInitialize()
139 sig_subObj->sInSDFile = NULL; in sigInitialize()
140 sig_subObj->sInSDFilePos = 0; in sigInitialize()
141 sig_subObj->sInSDFileName[0] = '\0'; in sigInitialize()
142 sig_subObj->outSwitch = 0; /*PU sends output to buffer (nextPU)*/ in sigInitialize()
143 sig_subObj->sOutSDFile = NULL; in sigInitialize()
144 sig_subObj->sOutSDFileName[0] = '\0'; in sigInitialize()
145 sig_subObj->nNumFrame = 0; in sigInitialize()
152 sig_subObj->pdfmgc = picokpdf_getPdfMUL( in sigInitialize()
154 sig_subObj->pdflfz = picokpdf_getPdfMUL( in sigInitialize()
156 sig_subObj->pdfphs = picokpdf_getPdfPHS( in sigInitialize()
159 sig_subObj->scmeanpowLFZ = sig_subObj->pdflfz->bigpow in sigInitialize()
160 - sig_subObj->pdflfz->meanpow; in sigInitialize()
161 sig_subObj->scmeanpowMGC = sig_subObj->pdfmgc->bigpow in sigInitialize()
162 - sig_subObj->pdfmgc->meanpow; in sigInitialize()
163 sig_subObj->scmeanLFZ = (1 << (picoos_uint32) sig_subObj->scmeanpowLFZ); in sigInitialize()
164 sig_subObj->scmeanMGC = (1 << (picoos_uint32) sig_subObj->scmeanpowMGC); in sigInitialize()
165 sig_subObj->fSampNorm = PICOSIG_NORM1 * sig_subObj->pdfmgc->amplif; in sigInitialize()
169 sigDspInitialize(&(sig_subObj->sig_inner), resetMode); in sigInitialize()
174 sig_subObj->pMod = 1.0f; in sigInitialize()
175 sig_subObj->vMod = 1.0f; in sigInitialize()
176 sig_subObj->sMod = 1.0f; in sigInitialize()
181 sigDspInitialize(&(sig_subObj->sig_inner), resetMode); in sigInitialize()
199 sig_subobj_t *sig_subObj; in sigTerminate() local
203 sig_subObj = (sig_subobj_t *) this->subObj; in sigTerminate()
220 sig_subobj_t *sig_subObj; in sigSubObjDeallocate() local
224 sig_subObj = (sig_subobj_t *) (this)->subObj; in sigSubObjDeallocate()
226 if (sig_subObj->sInSDFile != NULL) { in sigSubObjDeallocate()
227 picoos_sdfCloseIn(this->common, &(sig_subObj->sInSDFile)); in sigSubObjDeallocate()
228 sig_subObj->sInSDFile = NULL; in sigSubObjDeallocate()
229 sig_subObj->sInSDFileName[0] = '\0'; in sigSubObjDeallocate()
232 if (sig_subObj->sOutSDFile != NULL) { in sigSubObjDeallocate()
233 picoos_sdfCloseOut(this->common, &(sig_subObj->sOutSDFile)); in sigSubObjDeallocate()
234 sig_subObj->sOutSDFile = NULL; in sigSubObjDeallocate()
235 sig_subObj->sOutSDFileName[0] = '\0'; in sigSubObjDeallocate()
238 sigDeallocate(mm, &(sig_subObj->sig_inner)); in sigSubObjDeallocate()
261 sig_subobj_t *sig_subObj; in picosig_newSigUnit() local
283 sig_subObj = (sig_subobj_t *) this->subObj; in picosig_newSigUnit()
288 if (sigAllocate(mm, &(sig_subObj->sig_inner)) != 0) { in picosig_newSigUnit()
299 sigDeallocate(mm, &(sig_subObj->sig_inner)); in picosig_newSigUnit()
321 sig_subobj_t *sig_subObj; in getPhsFromPdf() local
332 sig_subObj = (sig_subobj_t *) this->subObj; in getPhsFromPdf()
333 pdf = sig_subObj->pdfphs; in getPhsFromPdf()
379 register sig_subobj_t * sig_subObj; in sigProcess() local
389 sig_subObj = (sig_subobj_t *) this->subObj; in sigProcess()
397 switch (sig_subObj->innerProcState) { in sigProcess()
404 sig_subObj->sig_inner.F0Buff[n_count]=sig_subObj->sig_inner.F0Buff[n_count+1]; in sigProcess()
405 sig_subObj->sig_inner.PhIdBuff[n_count]=sig_subObj->sig_inner.PhIdBuff[n_count+1]; in sigProcess()
406 … sig_subObj->sig_inner.VoicingBuff[n_count]=sig_subObj->sig_inner.VoicingBuff[n_count+1]; in sigProcess()
407 sig_subObj->sig_inner.FuVBuff[n_count]=sig_subObj->sig_inner.FuVBuff[n_count+1]; in sigProcess()
410 … sig_subObj->sig_inner.VoxBndBuff[n_count]=sig_subObj->sig_inner.VoxBndBuff[n_count+1]; in sigProcess()
413 tmp1 = sig_subObj->sig_inner.CepBuff[0]; in sigProcess()
415 sig_subObj->sig_inner.CepBuff[n_count]=sig_subObj->sig_inner.CepBuff[n_count+1]; in sigProcess()
417 sig_subObj->sig_inner.CepBuff[CEPST_BUFF_SIZE-1]=tmp1; in sigProcess()
419 tmp1 = sig_subObj->sig_inner.PhsBuff[0]; in sigProcess()
421 sig_subObj->sig_inner.PhsBuff[n_count]=sig_subObj->sig_inner.PhsBuff[n_count+1]; in sigProcess()
423 sig_subObj->sig_inner.PhsBuff[PHASE_BUFF_SIZE-1]=tmp1; in sigProcess()
428 sig_subObj->sig_inner.prevVoiced_p = sig_subObj->sig_inner.voiced_p; in sigProcess()
433 picoos_mem_copy((void *) &sig_subObj->inBuf[inReadPos in sigProcess()
436 …sig_subObj->sig_inner.PhIdBuff[CEPST_BUFF_SIZE-1] = (picoos_int16) tmp_uint16; /*store into newest… in sigProcess()
437 … tmp_uint16 = (picoos_int16) sig_subObj->sig_inner.PhIdBuff[0]; /*assign oldest*/ in sigProcess()
438 … sig_subObj->sig_inner.phId_p = (picoos_int16) tmp_uint16; /*assign oldest*/ in sigProcess()
441 for (i = 0; i < sig_subObj->pdflfz->ceporder; i++) { in sigProcess()
442 picoos_mem_copy((void *) &(sig_subObj->inBuf[inReadPos in sigProcess()
447 … sig_subObj->sig_inner.F0Buff[CEPST_BUFF_SIZE-1] = (picoos_int16) tmp_uint16;/*store into newest*/ in sigProcess()
448 … tmp_uint16 = (picoos_int16) sig_subObj->sig_inner.F0Buff[0]; /*assign oldest*/ in sigProcess()
451 sig_subObj->sig_inner.F0_p in sigProcess()
453 / sig_subObj->scmeanLFZ) : (picoos_single) 0.0); in sigProcess()
455 if (sig_subObj->sig_inner.F0_p != (picoos_single) 0.0f) { in sigProcess()
456 sig_subObj->sig_inner.F0_p = (picoos_single) exp( in sigProcess()
457 (picoos_single) sig_subObj->sig_inner.F0_p); in sigProcess()
461 picoos_mem_copy((void *) &(sig_subObj->inBuf[inReadPos in sigProcess()
466 …sig_subObj->sig_inner.VoicingBuff[CEPST_BUFF_SIZE-1] = (picoos_int16) tmp_uint16;/*store into newe… in sigProcess()
467 … tmp_uint16 = (picoos_int16) sig_subObj->sig_inner.VoicingBuff[0]; /*assign oldest*/ in sigProcess()
469 sig_subObj->sig_inner.voicing = (picoos_single) ((tmp_uint16 in sigProcess()
474 picoos_mem_copy((void *) &(sig_subObj->inBuf[inReadPos in sigProcess()
479 … sig_subObj->sig_inner.FuVBuff[CEPST_BUFF_SIZE-1] = (picoos_int16) tmp_uint16;/*store into newest*/ in sigProcess()
480 … tmp_uint16 = (picoos_int16) sig_subObj->sig_inner.FuVBuff[0]; /*assign oldest*/ in sigProcess()
482 sig_subObj->sig_inner.Fuv_p = (picoos_single) tmp_uint16 in sigProcess()
483 / sig_subObj->scmeanLFZ; in sigProcess()
484 … sig_subObj->sig_inner.Fuv_p = (picoos_single) EXP((double)sig_subObj->sig_inner.Fuv_p); in sigProcess()
489 3 * sig_subObj->pdflfz->ceporder * sizeof(tmp_int16); in sigProcess()
491 tmp1 = sig_subObj->sig_inner.CepBuff[CEPST_BUFF_SIZE-1]; /*store into CURR */ in sigProcess()
492 tmp2 = sig_subObj->sig_inner.CepBuff[0]; /*assign oldest*/ in sigProcess()
494 for (i = 0; i < sig_subObj->pdfmgc->ceporder; i++) { in sigProcess()
495 picoos_mem_copy((void *) &(sig_subObj->inBuf[offset + i in sigProcess()
500 sig_subObj->sig_inner.wcep_pI[i] = (picoos_int32) tmp2[i]; in sigProcess()
503 if (sig_subObj->inBuf[inReadPos+ 3] > sig_subObj->inBuf[inReadPos+ 2]*2 + 8) { in sigProcess()
506 picoos_mem_copy((void *) &(sig_subObj->inBuf[offset + sig_subObj->pdfmgc->ceporder in sigProcess()
511 tmp1 = sig_subObj->sig_inner.PhsBuff[PHASE_BUFF_SIZE-1]; in sigProcess()
513 … getPhsFromPdf(this, tmp_int16, tmp1, &(sig_subObj->sig_inner.VoxBndBuff[PHASE_BUFF_SIZE-1])); in sigProcess()
516 sig_subObj->sig_inner.VoxBndBuff[PHASE_BUFF_SIZE-1] = 0; in sigProcess()
520 sig_subObj->sig_inner.F0_p *= sig_subObj->pMod; in sigProcess()
521 sig_subObj->sig_inner.Fuv_p *= sig_subObj->pMod; in sigProcess()
522 if (sig_subObj->sig_inner.F0_p > 0.0f) { in sigProcess()
523 sig_subObj->sig_inner.voiced_p = 1; in sigProcess()
525 sig_subObj->sig_inner.voiced_p = 0; in sigProcess()
527 sig_subObj->sig_inner.n_available++; in sigProcess()
528 if (sig_subObj->sig_inner.n_available>3) sig_subObj->sig_inner.n_available = 3; in sigProcess()
530 if (sig_subObj->sig_inner.n_available < 3) { in sigProcess()
534 sig_subObj->innerProcState = 3; in sigProcess()
539 save_transition_frame(&(sig_subObj->sig_inner)); in sigProcess()
540 mel_2_lin_lookup(&(sig_subObj->sig_inner), sig_subObj->scmeanpowMGC); in sigProcess()
541 sig_subObj->innerProcState += 1; in sigProcess()
546 phase_spec2(&(sig_subObj->sig_inner)); in sigProcess()
547 sig_subObj->innerProcState += 1; in sigProcess()
552 env_spec(&(sig_subObj->sig_inner)); in sigProcess()
553 sig_subObj->innerProcState += 1; in sigProcess()
558 impulse_response(&(sig_subObj->sig_inner)); in sigProcess()
559 sig_subObj->innerProcState += 1; in sigProcess()
564 td_psola2(&(sig_subObj->sig_inner)); in sigProcess()
565 sig_subObj->innerProcState += 1; in sigProcess()
570 overlap_add(&(sig_subObj->sig_inner)); in sigProcess()
571 sig_subObj->innerProcState += 1; in sigProcess()
581 hop_p_half = (sig_subObj->sig_inner.hop_p) / 2; in sigProcess()
583 sig_subObj->outBuf[outWritePos] in sigProcess()
585 sig_subObj->outBuf[outWritePos + 1] in sigProcess()
587 sig_subObj->outBuf[outWritePos + 2] in sigProcess()
588 = (picoos_uint8) (sig_subObj->nNumFrame % ((hop_p_half))); in sigProcess()
589 sig_subObj->outBuf[outWritePos + 3] in sigProcess()
590 = (picoos_uint8) sig_subObj->sig_inner.hop_p; in sigProcess()
591 s_data = (picoos_int16 *) &(sig_subObj->outBuf[outWritePos + 4]); in sigProcess()
594 mlt = (picoos_int32) ((sig_subObj->fSampNorm * sig_subObj->vMod) in sigProcess()
596 t1 = &(sig_subObj->sig_inner.WavBuff_p[n_count * (hop_p_half)]); in sigProcess()
610 sig_subObj->nNumFrame = sig_subObj->nNumFrame + 1; in sigProcess()
615 cnt = sig_subObj->sig_inner.m2_p - sig_subObj->sig_inner.hop_p; in sigProcess()
616 tmp1 = sig_subObj->sig_inner.WavBuff_p; in sigProcess()
618 = &(sig_subObj->sig_inner.WavBuff_p[sig_subObj->sig_inner.hop_p]); in sigProcess()
621 cnt = sig_subObj->sig_inner.m2_p - (sig_subObj->sig_inner.m2_p in sigProcess()
622 - sig_subObj->sig_inner.hop_p); in sigProcess()
625 sig_subObj->innerProcState = 0; /*reset to step 0*/ in sigProcess()
626 sig_subObj->nNumFrame += 2; in sigProcess()
727 register sig_subobj_t * sig_subObj; in sigStep() local
757 sig_subObj = (sig_subobj_t *) this->subObj; in sigStep()
766 PICODBG_DEBUG(("picosig.sigStep -- doing state %i",sig_subObj->procState)); in sigStep()
768 switch (sig_subObj->procState) { in sigStep()
774 &(sig_subObj->inBuf[sig_subObj->inWritePos]), in sigStep()
775 sig_subObj->inBufSize - sig_subObj->inWritePos, &blen); in sigStep()
786 &(sig_subObj->inBuf[sig_subObj->inWritePos]), blen); in sigStep()
793 sig_subObj->inWritePos += blen; in sigStep()
794 sig_subObj->needMoreInput = FALSE; in sigStep()
795 sig_subObj->procState = PICOSIG_SCHEDULE; in sigStep()
806 + sig_subObj->inBuf[sig_subObj->inReadPos + 3]; in sigStep()
810 &(sig_subObj->inBuf[sig_subObj->inReadPos])); in sigStep()
817 &(sig_subObj->inBuf[sig_subObj->inReadPos]))) in sigStep()
820 sig_subObj->procState = PICOSIG_PROCESS; in sigStep()
821 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
828 switch (sig_subObj->inBuf[sig_subObj->inReadPos + 1]) { in sigStep()
832 sig_subObj->inReadPos += numinb; in sigStep()
833 if (sig_subObj->inReadPos in sigStep()
834 >= sig_subObj->inWritePos) { in sigStep()
835 sig_subObj->inReadPos = 0; in sigStep()
836 sig_subObj->inWritePos = 0; in sigStep()
839 sig_subObj->procState = in sigStep()
840 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
843 if (sig_subObj->sInSDFile != NULL) { in sigStep()
850 (picoos_char*) &(sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
852 sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
855 if (sig_subObj->sOutSDFile != NULL) { in sigStep()
858 (picoos_char*) sig_subObj->sOutSDFileName, in sigStep()
868 &(sig_subObj->sInSDFile), in sigStep()
873 sig_subObj->sInSDFile = NULL; in sigStep()
874 sig_subObj->sInSDFileName[0] = '\0'; in sigStep()
879 (picoos_char*) sig_subObj->sInSDFileName, in sigStep()
881 sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
883 sig_subObj->sInSDFilePos = 0; in sigStep()
885 sig_subObj->procState = in sigStep()
886 sig_subObj->retState = PICOSIG_PLAY; in sigStep()
892 sig_subObj->inReadPos += numinb; in sigStep()
893 if (sig_subObj->inReadPos in sigStep()
894 >= sig_subObj->inWritePos) { in sigStep()
895 sig_subObj->inReadPos = 0; in sigStep()
896 sig_subObj->inWritePos = 0; in sigStep()
899 sig_subObj->procState = PICOSIG_COLLECT; in sigStep()
900 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
902 if ((sig_subObj->sOutSDFile != NULL) in sigStep()
903 || (sig_subObj->outSwitch == 1)) { in sigStep()
910 (picoos_char*) &(sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
912 sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
922 if (sig_subObj->sInSDFile != NULL) { in sigStep()
924 (picoos_char*) sig_subObj->sInSDFileName, in sigStep()
927 (picoos_char*) sig_subObj->sInSDFileName)) in sigStep()
936 &(sig_subObj->sOutSDFile), in sigStep()
939 if (sig_subObj->sOutSDFile == NULL) { in sigStep()
940 … PICODBG_DEBUG(("Error on opening file %s\n", sig_subObj->sOutSDFileName)); in sigStep()
941 sig_subObj->outSwitch = 0; in sigStep()
942 sig_subObj->sOutSDFileName[0] = '\0'; in sigStep()
945 sig_subObj->outSwitch = 1; in sigStep()
948 (picoos_char*) sig_subObj->sOutSDFileName, in sigStep()
950 sig_subObj->inBuf[sig_subObj->inReadPos + 3] + 1); in sigStep()
957 sig_subObj->inReadPos += numinb; in sigStep()
958 if (sig_subObj->inReadPos in sigStep()
959 >= sig_subObj->inWritePos) { in sigStep()
960 sig_subObj->inReadPos = 0; in sigStep()
961 sig_subObj->inWritePos = 0; in sigStep()
964 sig_subObj->procState = PICOSIG_COLLECT; in sigStep()
965 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
967 if ((sig_subObj->sOutSDFile == NULL) in sigStep()
968 || (sig_subObj->outSwitch == 0)) { in sigStep()
974 &(sig_subObj->sOutSDFile)); in sigStep()
975 sig_subObj->outSwitch = 0; in sigStep()
976 sig_subObj->sOutSDFile = NULL; in sigStep()
977 sig_subObj->sOutSDFileName[0] = '\0'; in sigStep()
986 &(sig_subObj->inBuf[sig_subObj->inReadPos]), in sigStep()
989 switch (sig_subObj->inBuf[sig_subObj->inReadPos + 2]) { in sigStep()
1007 switch (sig_subObj->inBuf[sig_subObj->inReadPos + 1]) { in sigStep()
1009 sig_subObj->pMod = f_value; in sigStep()
1012 sig_subObj->vMod = f_value; in sigStep()
1015 sig_subObj->sMod = f_value; in sigStep()
1016 sig_subObj->sig_inner.sMod_p in sigStep()
1017 = sig_subObj->sMod; in sigStep()
1020 &(sig_subObj->sig_inner)); in sigStep()
1028 sig_subObj->inReadPos += numinb; in sigStep()
1029 if (sig_subObj->inReadPos in sigStep()
1030 >= sig_subObj->inWritePos) { in sigStep()
1031 sig_subObj->inReadPos = 0; in sigStep()
1032 sig_subObj->inWritePos = 0; in sigStep()
1035 sig_subObj->procState = PICOSIG_COLLECT; in sigStep()
1036 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
1052 &(sig_subObj->inBuf[sig_subObj->inReadPos]), in sigStep()
1054 &(sig_subObj->outBuf[sig_subObj->outWritePos]), in sigStep()
1055 sig_subObj->outBufSize - sig_subObj->outWritePos, in sigStep()
1060 sig_subObj->procState = PICOSIG_SCHEDULE; in sigStep()
1061 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
1066 if ((sig_subObj->inBuf[sig_subObj->inReadPos] in sigStep()
1068 && ((sig_subObj->inBuf[sig_subObj->inReadPos + 1] in sigStep()
1070 || (sig_subObj->inBuf[sig_subObj->inReadPos in sigStep()
1074 sig_subObj->nNumFrame)); in sigStep()
1075 sig_subObj->nNumFrame = 0; in sigStep()
1079 sig_subObj->inReadPos += numinb; in sigStep()
1080 sig_subObj->outWritePos += numoutb; in sigStep()
1081 if (sig_subObj->inReadPos >= sig_subObj->inWritePos) { in sigStep()
1083 sig_subObj->inReadPos = 0; in sigStep()
1084 sig_subObj->inWritePos = 0; in sigStep()
1085 sig_subObj->needMoreInput = FALSE; in sigStep()
1087 sig_subObj->procState = PICOSIG_FEED; in sigStep()
1088 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
1101 + sig_subObj->inBuf[sig_subObj->inReadPos + 3]; in sigStep()
1104 s_result = sigProcess(this, sig_subObj->inReadPos, numinb, in sigStep()
1105 sig_subObj->outWritePos, &numoutb); in sigStep()
1108 sig_subObj->inReadPos += numinb; in sigStep()
1109 if (sig_subObj->inReadPos >= sig_subObj->inWritePos) { in sigStep()
1110 sig_subObj->inReadPos = 0; in sigStep()
1111 sig_subObj->inWritePos = 0; in sigStep()
1112 sig_subObj->needMoreInput = FALSE; in sigStep()
1114 sig_subObj->outWritePos += numoutb; in sigStep()
1115 sig_subObj->procState = PICOSIG_FEED; in sigStep()
1116 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
1117 …tep -- leaving PICO_PROC, inReadPos = %i, outWritePos = %i",sig_subObj->inReadPos, sig_subObj->out… in sigStep()
1126 s_data = (picoos_int16 *) &(sig_subObj->outBuf[sig_subObj->outWritePos + 4]); in sigStep()
1127 hop_p_half = sig_subObj->sig_inner.hop_p / 2; in sigStep()
1130 b_res = picoos_sdfGetSamples(sig_subObj->sInSDFile, in sigStep()
1131 sig_subObj->sInSDFilePos, &n_samp, s_data); in sigStep()
1132 sig_subObj->sInSDFilePos += n_samp; in sigStep()
1136 picoos_sdfCloseIn(this->common, &(sig_subObj->sInSDFile)); in sigStep()
1137 sig_subObj->sInSDFile = NULL; in sigStep()
1138 sig_subObj->sInSDFileName[0] = '\0'; in sigStep()
1139 sig_subObj->procState = PICOSIG_COLLECT; in sigStep()
1140 sig_subObj->retState = PICOSIG_COLLECT; in sigStep()
1149 sf_mlt = (picoos_int32) ((sig_subObj->vMod) * 16.0f); in sigStep()
1166 sig_subObj->outBuf[sig_subObj->outWritePos] in sigStep()
1168 sig_subObj->outBuf[sig_subObj->outWritePos + 1] in sigStep()
1170 sig_subObj->outBuf[sig_subObj->outWritePos + 2] in sigStep()
1171 … = (picoos_uint8) (sig_subObj->nNumFrame % (hop_p_half)); /*number of frame % 64*/ in sigStep()
1172 sig_subObj->outBuf[sig_subObj->outWritePos + 3] in sigStep()
1175 sig_subObj->outWritePos += (n_samp * sizeof(picoos_int16)) + 4; /*including header*/ in sigStep()
1176 sig_subObj->procState = PICOSIG_FEED; in sigStep()
1177 sig_subObj->retState = PICOSIG_PLAY; in sigStep()
1182 switch (sig_subObj->outSwitch) { in sigStep()
1186 &(sig_subObj->outBuf[sig_subObj->outReadPos]), in sigStep()
1187 sig_subObj->outWritePos - sig_subObj->outReadPos, in sigStep()
1192 if (sig_subObj->outBuf[sig_subObj->outReadPos] in sigStep()
1194 if ((sig_subObj->sOutSDFile) != NULL) { in sigStep()
1195 n_start = (picoos_uint32) (sig_subObj->outReadPos) in sigStep()
1197 … n_bytes = (picoos_uint32) sig_subObj->outBuf[(sig_subObj->outReadPos) in sigStep()
1199 n_fram = (picoos_uint32) sig_subObj->outBuf[(sig_subObj->outReadPos) in sigStep()
1202 sig_subObj->sOutSDFile, in sigStep()
1204 (picoos_int16*) &(sig_subObj->outBuf[n_start]))) { in sigStep()
1211 &(sig_subObj->outBuf[sig_subObj->outReadPos]), in sigStep()
1212 sig_subObj->outWritePos in sigStep()
1213 - sig_subObj->outReadPos, in sigStep()
1217 if (sig_subObj->sOutSDFile != NULL) { in sigStep()
1218 picoos_sdfCloseOut(this->common, &(sig_subObj->sOutSDFile)); in sigStep()
1219 sig_subObj->sOutSDFile = NULL; in sigStep()
1221 sig_subObj->sOutSDFileName[0] = '\0'; in sigStep()
1222 sig_subObj->outSwitch = 0; in sigStep()
1223 …BG_DEBUG(("Error in writing :%d bytes to output file %s\n", numoutb, &(sig_subObj->sOutSDFileName[… in sigStep()
1231 &(sig_subObj->outBuf[sig_subObj->outReadPos]), in sigStep()
1232 sig_subObj->outWritePos - sig_subObj->outReadPos, in sigStep()
1244 sig_subObj->outReadPos += numoutb; in sigStep()
1249 if (sig_subObj->outReadPos >= sig_subObj->outWritePos) { in sigStep()
1250 sig_subObj->outReadPos = 0; in sigStep()
1251 sig_subObj->outWritePos = 0; in sigStep()
1252 sig_subObj->procState = sig_subObj->retState; in sigStep()
1265 sig_subObj->outReadPos = 0; in sigStep()
1266 sig_subObj->outWritePos = 0; in sigStep()
1267 sig_subObj->procState = sig_subObj->retState; in sigStep()