1
0
Fork 0
forked from len0rd/rockbox

SPC Codec: Have metadata parser fill in frequency and bitrate.

Change-Id: I6c72f4d1c79b1a99a11fb28e7d46886c08a56a75
This commit is contained in:
Michael Sevakis 2013-05-21 20:01:17 -04:00
parent 1f76edabf9
commit ed24e62029

View file

@ -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);