summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-10-31 21:09:34 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-10-31 21:09:34 +0000
commit56c4e9fa600557242d8b78f5fd8e32c2245b76fc (patch)
treef8558778a302f89c3e819e66e86577a5e37c3660 /uisimulator
parent40ed5f57d9be61f1200026e9b0f944a9718111c1 (diff)
downloadrockbox-56c4e9fa600557242d8b78f5fd8e32c2245b76fc.tar.gz
rockbox-56c4e9fa600557242d8b78f5fd8e32c2245b76fc.zip
Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. FS#11189 by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/stubs.c108
1 files changed, 107 insertions, 1 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index a9011b9aa5..e0372d2683 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -40,7 +40,113 @@ void audio_set_buffer_margin(int seconds)
{
(void)seconds;
}
-#endif
+
+/* firmware/target/sh/archos/audio-archos.c */
+
+/* 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 unsigned char* start, int size,
+ void (*get_more)(unsigned char** start, size_t* size) /* callback fn */
+)
+{
+ (void)start; (void)size; (void)get_more;
+}
+
+/* firmware/drivers/audio/mas35xx.c */
+#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
+void audiohw_set_loudness(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_avc(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_mdb_strength(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_mdb_harmonics(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_mdb_center(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_mdb_shape(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_mdb_enable(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_superbass(int value)
+{
+ (void)value;
+}
+
+void audiohw_set_pitch(unsigned long value)
+{
+ (void)value;
+}
+#endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
+#endif /* CODEC != SWCODEC */
int fat_startsector(void)
{