diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 19:23:27 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 19:23:27 +0000 |
| commit | 2aa0759077ce43b75470eae5be32c102aeea12ce (patch) | |
| tree | f7d0aaf38fb862c37ebb4bae75c12c6e2c2c5bad /apps/plugins/pdbox/PDa/intern | |
| parent | 4f4edd89e42a50539a140f6290aefd425720e469 (diff) | |
| download | rockbox-2aa0759077ce43b75470eae5be32c102aeea12ce.zip rockbox-2aa0759077ce43b75470eae5be32c102aeea12ce.tar.gz rockbox-2aa0759077ce43b75470eae5be32c102aeea12ce.tar.bz2 rockbox-2aa0759077ce43b75470eae5be32c102aeea12ce.tar.xz | |
Fix even more 'set but not used' warnings and a regression.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29873 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/intern')
| -rw-r--r-- | apps/plugins/pdbox/PDa/intern/sfwrite~.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/sfwrite~.c b/apps/plugins/pdbox/PDa/intern/sfwrite~.c index 6f80192..fb8ef9e 100644 --- a/apps/plugins/pdbox/PDa/intern/sfwrite~.c +++ b/apps/plugins/pdbox/PDa/intern/sfwrite~.c @@ -136,8 +136,10 @@ static t_int *sfwrite_perform(t_int *w) int i,num,n; short* tout = out; int ret; +#ifndef ROCKBOX int timebefore,timeafter; - /* double late; unused */ + double late; +#endif for (i=0;i < c;i++) { in[i] = (t_sample *)(w[2+i]); @@ -155,13 +157,17 @@ static t_int *sfwrite_perform(t_int *w) } } +#ifndef ROCKBOX timebefore = sys_getrealtime(); +#endif if ((ret =write(x->x_file,out,sizeof(short)*num*c)) < (signed int)sizeof(short)*num*c) { post("sfwrite: short write %d",ret); } +#ifndef ROCKBOX timeafter = sys_getrealtime(); - /* late = timeafter - timebefore; unused */ + late = timeafter - timebefore; +#endif #if 0 /* OK, we let only 10 ms block here */ |