The header specifies the number of samples in the file. Return this value when opening.
Unified · Split
| @@ -147,6 +147,7 @@ static int startread(sox_format_t * ft) · 146 unmodified lines | ||
| 147 | 147 | ft->encoding.bits_per_sample = 8; |
| 148 | 148 | ft->signal.rate = 22050 / divisor; |
| 149 | 149 | ft->signal.channels = 1; |
| 150 | + ft->signal.length = huffcount; | |
| 150 | 151 | |
| 151 | 152 | /* Allocate memory for the dictionary */ |
| 152 | 153 | p->dictionary = lsx_malloc(511 * sizeof(dictent)); |