Changeset 1135:bb7bb703c22b in roaraudio
- Timestamp:
- 01/20/09 20:42:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/filter_dcblock.c
r1131 r1135 61 61 return -1; 62 62 63 ROAR_DBG("roardsp_dcblock_reset(filter=%p, what=%i) = ?", filter, what); 64 63 65 switch (what) { 64 66 case ROARDSP_RESET_NONE: … … 71 73 case ROARDSP_RESET_STATE: 72 74 memset(((struct roardsp_dcblock*)filter->inst)->dc, 0, sizeof(int32_t)*ROARDSP_DCBLOCK_NUMBLOCKS); 75 ((struct roardsp_dcblock*)filter->inst)->cur = 0; 73 76 return 0; 74 77 break; … … 91 94 } 92 95 93 ROAR_ WARN("roardsp_dcblock_calc16(*): s=%i (current block of %i samples)", s, samples);96 ROAR_DBG("roardsp_dcblock_calc16(*): s=%i (current block of %i samples)", s, samples); 94 97 95 98 s = (float)(s / samples); 96 99 97 ROAR_ WARN("roardsp_dcblock_calc16(*): inst=%p, inst->cur=%i", inst, inst->cur);100 ROAR_DBG("roardsp_dcblock_calc16(*): inst=%p, inst->cur=%i", inst, inst->cur); 98 101 inst->dc[(inst->cur)++] = s; 99 102 … … 110 113 // s += (ROAR_INSTINT)filter->inst; 111 114 112 ROAR_ WARN("roardsp_dcblock_calc16(*): new DC value: %i", s);115 ROAR_DBG("roardsp_dcblock_calc16(*): new DC value: %i", s); 113 116 114 117 for (i = 0; i < samples; i++)
Note: See TracChangeset
for help on using the changeset viewer.