mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
[3/4] Completely remove HWCODEC support
'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
This commit is contained in:
parent
0c4f89370d
commit
8cb555460f
207 changed files with 322 additions and 5594 deletions
|
|
@ -108,11 +108,9 @@ static int getsonglength(int fd, struct mp3entry *entry)
|
|||
entry->frequency = info.frequency;
|
||||
entry->layer = info.layer;
|
||||
switch(entry->layer) {
|
||||
#if CONFIG_CODEC==SWCODEC
|
||||
case 0:
|
||||
entry->codectype=AFMT_MPA_L1;
|
||||
break;
|
||||
#endif
|
||||
case 1:
|
||||
entry->codectype=AFMT_MPA_L2;
|
||||
break;
|
||||
|
|
@ -143,12 +141,10 @@ static int getsonglength(int fd, struct mp3entry *entry)
|
|||
entry->vbr = info.is_vbr;
|
||||
entry->has_toc = info.has_toc;
|
||||
|
||||
#if CONFIG_CODEC==SWCODEC
|
||||
if (!entry->lead_trim)
|
||||
entry->lead_trim = info.enc_delay;
|
||||
if (!entry->tail_trim)
|
||||
entry->tail_trim = info.enc_padding;
|
||||
#endif
|
||||
|
||||
memcpy(entry->toc, info.toc, sizeof(info.toc));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue