summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-05-21 20:01:17 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-05-21 20:01:17 -0400
commited24e620290ad5290fc4178f13e5c7cf611a76e0 (patch)
tree75cdf5f765344a8805830b981e00f7a617c36869 /lib
parent1f76edabf9dca3b1cb25de77f6572a12370e35c4 (diff)
downloadrockbox-ed24e620290ad5290fc4178f13e5c7cf611a76e0.tar.gz
rockbox-ed24e620290ad5290fc4178f13e5c7cf611a76e0.tar.bz2
rockbox-ed24e620290ad5290fc4178f13e5c7cf611a76e0.zip
SPC Codec: Have metadata parser fill in frequency and bitrate.
Change-Id: I6c72f4d1c79b1a99a11fb28e7d46886c08a56a75
Diffstat (limited to 'lib')
-rw-r--r--lib/rbcodec/metadata/spc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbcodec/metadata/spc.c b/lib/rbcodec/metadata/spc.c
index 6d4590de3b..bb24d7ebf9 100644
--- a/lib/rbcodec/metadata/spc.c
+++ b/lib/rbcodec/metadata/spc.c
@@ -121,6 +121,8 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
fade=5*1000; /* 5 seconds */
}
+ id3->bitrate = 1536; /* 32kHz * 24bits/ch / 1000 */
+ id3->frequency = 32000;
id3->length = length+fade;
id3->filesize = filesize(fd);