Rockbox

Tasklist

FS#12490 - WPS tag for number of channels

Attached to Project: Rockbox
Opened by Frank Gevaerts (fg) - Tuesday, 27 December 2011, 21:54 GMT
Last edited by Frank Gevaerts (fg) - Tuesday, 27 December 2011, 21:54 GMT
Task Type Patches
Category ID3 / meta data
Status New
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This patch adds a %ch tag that returns the number of channels in the current file.

Unfortunately, the large majority of codecs don't fill in this field in struct mp3entry. In the codecs covered by the rockbox testfiles collection, only atrac, cook and tta actually work.

I don't think it makes much sense to commit this with so few supported codecs, so help is appreciated on the codec side of things
This task depends upon

Comment by Frank Gevaerts (fg) - Tuesday, 27 December 2011, 22:21 GMT
This patch uses the DSP setup instead of the codec metadata. It should work for all codecs, but it won't know if a file has more than two channels and is downmixed.
Comment by Jonathan Gordon (jdgordon) - Tuesday, 27 December 2011, 23:51 GMT
wont it always show 2 channels then?
also, it should use i<something> instead of %ch to go along with all the other metadata related tags
Comment by Martin Sägmüller (dfkt) - Wednesday, 28 December 2011, 12:53 GMT
Isn't this more fitting into the %f-something file info category than into the metadata one? At least with the second patch, methinks.

Loading...