#include <sent/stddefs.h>
zc-e.cのインクルード依存関係図

マクロ定義 | |
| #define | UNDEF 2 |
| Undefined mark used for sign. | |
| #define | POSITIVE 1 |
| Positive mark used for sign. | |
| #define | NEGATIVE -1 |
| Negative mark used for sign. | |
関数 | |
| void | init_count_zc_e (int c_trigger, int c_length, int c_offset) |
| void | end_count_zc_e () |
| int | count_zc_e (SP16 *buf, int step) |
| int | count_zc_e_level (SP16 *buf, int step, int *levelp) |
| void | zc_copy_buffer (SP16 *newbuf, int *len) |
変数 | |
| static int | trigger |
| Level threshold. | |
| static int | length |
| Cycle buffer size = number of samples to hold. | |
| static int | offset |
| Static data DC offset. | |
| static int * | is_zc |
| Zero-crossing point flag list. | |
| static SP16 * | data |
| Data cycle buffer. | |
| static int | zero_cross |
| Total zerocross num in data. | |
| static int | sign |
| Current sign of sample for zerocross counting. | |
| static int | is_trig |
| Triggering sign. | |
| static int | top |
| Current pointer of buffer. | |
| static int | valid_len |
| Valid samples in buffer (for short input). | |
zc-e.c で定義されています。
|
||||||||||||||||
|
Initialize all parameters and buffers for zero-cross counting.
参照元 adin_cut(). |
|
|
End procedure: free all buffers. 参照元 adin_cut(). |
|
||||||||||||
|
Adding buf[0..step-1] to the cycle buffer and update the count of zero cross. Also swap them with the oldest ones in the cycle buffer.
参照元 adin_cut(). |
|
||||||||||||||||
|
Adding buf[0..step-1] to the cycle buffer and update the count of zero cross. Also swap them with the oldest ones in the cycle buffer. Also get the maximum level in the cycle buffer.
|
|
||||||||||||
|
Flush samples in the current cycle buffer.
参照元 adin_cut(). |
1.4.2