summaryrefslogtreecommitdiffstats
path: root/apps/codecs/nsf.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-10 02:52:12 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-10 02:52:12 +0000
commite8dc7a6d0702c6724c4b3b9a4cf8efb7c6f712c9 (patch)
tree2253b78ded296b28218f89c7045664ab065fa8ae /apps/codecs/nsf.c
parent559e0e10f861fa559cf2d20c8267fc2650720565 (diff)
downloadrockbox-e8dc7a6d0702c6724c4b3b9a4cf8efb7c6f712c9.tar.gz
rockbox-e8dc7a6d0702c6724c4b3b9a4cf8efb7c6f712c9.tar.bz2
rockbox-e8dc7a6d0702c6724c4b3b9a4cf8efb7c6f712c9.zip
Migrate some floating point code to fixed point in libgme.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30493 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/nsf.c')
-rw-r--r--apps/codecs/nsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/nsf.c b/apps/codecs/nsf.c
index 7214b5d2a2..4c5b37c3fa 100644
--- a/apps/codecs/nsf.c
+++ b/apps/codecs/nsf.c
@@ -126,7 +126,7 @@ next_track:
/* Set elapsed time for one track files */
if (is_multitrack == 0) {
- elapsed_time += (CHUNK_SIZE / 2) / 44.1;
+ elapsed_time += (CHUNK_SIZE / 2) * 10 / 441;
ci->set_elapsed(elapsed_time);
}
}