[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:
Solomon Peachy 2020-07-17 00:01:32 -04:00
parent 0c4f89370d
commit 8cb555460f
207 changed files with 322 additions and 5594 deletions

View file

@ -35,75 +35,6 @@
static bool storage_spinning = false;
#if CONFIG_CODEC != SWCODEC
#include "mp3_playback.h"
void audio_set_buffer_margin(int seconds)
{
(void)seconds;
}
/* list of tracks in memory */
#define MAX_ID3_TAGS (1<<4) /* Must be power of 2 */
#define MAX_ID3_TAGS_MASK (MAX_ID3_TAGS - 1)
static bool paused; /* playback is paused */
static bool playing; /* We are playing an MP3 stream */
bool audio_is_initialized = false;
void mp3_init(int volume, int bass, int treble, int balance, int loudness,
int avc, int channel_config, int stereo_width,
int mdb_strength, int mdb_harmonics,
int mdb_center, int mdb_shape, bool mdb_enable,
bool superbass)
{
(void)volume;
(void)bass;
(void)treble;
(void)balance;
(void)loudness;
(void)avc;
(void)channel_config;
(void)stereo_width;
(void)mdb_strength;
(void)mdb_harmonics;
(void)mdb_center;
(void)mdb_shape;
(void)mdb_enable;
(void)superbass;
audio_is_initialized = true;
playing = false;
paused = true;
}
void mp3_play_pause(bool play)
{
(void)play;
}
void mp3_play_stop(void)
{
}
unsigned char* mp3_get_pos(void)
{
return NULL;
}
void mp3_play_data(const void* start, size_t size,
mp3_play_callback_t get_more)
{
(void)start; (void)size; (void)get_more;
}
void mp3_shutdown(void)
{
}
#endif /* CODEC != SWCODEC */
int fat_startsector(void)
{
return 63;