History

Count samples with 64 bits in more places

Change a number of places where size_t or off_t were still used to count samples in order to now use (sox_)uint64_t. Also use PRIu64 where such numbers are output. Some function prototypes and data structures from sox.h are also affected. This breaks ABI compatibility; the library version number has been incremented for 14.4.0 already in commit e9a66b7c, so no change necessary here.

Ulrich Klauer committed 14 years ago

Commit f596a1a1 parent 9279a4817 files · +74 −69Browse files

Showing the changes to src/spectrogram.c (1 of 17 files). Show all

Unified · Split

src/spectrogram.c+2−2
@@ -56,7 +56,7 @@ typedef struct { · 55 unmodified lines
5656
5757 /* Per-channel work area */
5858 int WORK; /* Start of work area is marked by this dummy variable. */
59− size_t skip;
59+ uint64_t skip;
6060 int dft_size, step_size, block_steps, block_num, rows, cols, read;
6161 int x_size, end, end_min, last_end;
6262 sox_bool truncated;
@@ -92,7 +92,7 @@ static unsigned char const alt_palette[] = · 29 unmodified lines
9292 static int getopts(sox_effect_t * effp, int argc, char **argv)
9393 {
9494 priv_t * p = (priv_t *)effp->priv;
95− size_t duration;
95+ uint64_t duration;
9696 char const * next;
9797 int c;
9898 lsx_getopt_t optstate;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t