Showing the changes to src/example2.c (1 of 74 files). Show all
Unified · Split
| @@ -82,15 +82,14 @@ int main(int argc, char * argv[]) · 81 unmodified lines | ||
| 82 | 82 | /* Read in and process blocks of audio for the selected period or until EOF: */ |
| 83 | 83 | for (blocks = 0; sox_read(in, buf, block_size) == block_size && blocks * block_period < period; ++blocks) { |
| 84 | 84 | double left = 0, right = 0; |
| 85 | − size_t i, clips = 0; | |
| 85 | + size_t i; | |
| 86 | 86 | static const char line[] = "==================================="; |
| 87 | 87 | int l, r; |
| 88 | 88 | |
| 89 | 89 | for (i = 0; i < block_size; ++i) { |
| 90 | − SOX_SAMPLE_LOCALS; | |
| 91 | 90 | /* convert the sample from SoX's internal format to a `double' for |
| 92 | 91 | * processing in this application: */ |
| 93 | − double sample = SOX_SAMPLE_TO_FLOAT_64BIT(buf[i], clips); | |
| 92 | + double sample = SOX_SAMPLE_TO_FLOAT_64BIT(buf[i]); | |
| 94 | 93 | |
| 95 | 94 | /* The samples for each channel are interleaved; in this example |
| 96 | 95 | * we allow only stereo audio, so the left channel audio can be found in |