diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-04-25 22:54:58 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-04-25 22:54:58 +0000 |
commit | 668bd3445ecb39483160bbb310afa4337c83d0d9 (patch) | |
tree | 9df94188c72cd0af723012e022187b14c0d8f710 /firmware/mp3_playback.c | |
parent | 5185d9e30a7597425aa7f77c2d323e3002c60d8e (diff) | |
download | rockbox-668bd3445ecb39483160bbb310afa4337c83d0d9.tar.gz rockbox-668bd3445ecb39483160bbb310afa4337c83d0d9.zip |
Remove lots of simulator-speficic #ifdef'ing in sound.c to allow for DSP effects in the sims, e.g. for bass and treble (targets that do those effects in HW don't simulate using dsp).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25719 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mp3_playback.c')
-rw-r--r-- | firmware/mp3_playback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c index 2bbd08d789..8e19829f56 100644 --- a/firmware/mp3_playback.c +++ b/firmware/mp3_playback.c | |||
@@ -69,9 +69,7 @@ static void (*callback_for_more)(unsigned char**, size_t*); | |||
69 | #define MAX_ID3_TAGS (1<<4) /* Must be power of 2 */ | 69 | #define MAX_ID3_TAGS (1<<4) /* Must be power of 2 */ |
70 | #define MAX_ID3_TAGS_MASK (MAX_ID3_TAGS - 1) | 70 | #define MAX_ID3_TAGS_MASK (MAX_ID3_TAGS - 1) |
71 | 71 | ||
72 | #ifndef SIMULATOR | ||
73 | bool audio_is_initialized = false; | 72 | bool audio_is_initialized = false; |
74 | #endif | ||
75 | 73 | ||
76 | /* FIX: this code pretty much assumes a MAS */ | 74 | /* FIX: this code pretty much assumes a MAS */ |
77 | 75 | ||
@@ -353,6 +351,7 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness, | |||
353 | (void)mdb_shape; | 351 | (void)mdb_shape; |
354 | (void)mdb_enable; | 352 | (void)mdb_enable; |
355 | (void)superbass; | 353 | (void)superbass; |
354 | audio_is_initialized = true; | ||
356 | #else | 355 | #else |
357 | #if CONFIG_CODEC == MAS3507D | 356 | #if CONFIG_CODEC == MAS3507D |
358 | unsigned long val; | 357 | unsigned long val; |