From 8cb555460ff79e636a7907fb2589e16db98c8600 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 00:01:32 -0400 Subject: [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 --- uisimulator/common/stubs.c | 69 ---------------------------------------------- 1 file changed, 69 deletions(-) (limited to 'uisimulator/common/stubs.c') diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 9374a97d66..5c8e03d6f8 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -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; -- cgit v1.2.3