diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/SOURCES | 3 | ||||
-rw-r--r-- | apps/codecs/libwmapro/wmaprodec.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/apps/codecs/SOURCES b/apps/codecs/SOURCES index bce5c32a56..d950ffd46f 100644 --- a/apps/codecs/SOURCES +++ b/apps/codecs/SOURCES | |||
@@ -32,10 +32,7 @@ au.c | |||
32 | vox.c | 32 | vox.c |
33 | wav64.c | 33 | wav64.c |
34 | tta.c | 34 | tta.c |
35 | |||
36 | #if MEMORYSIZE > 2 | ||
37 | wmapro.c | 35 | wmapro.c |
38 | #endif | ||
39 | 36 | ||
40 | #ifdef HAVE_RECORDING | 37 | #ifdef HAVE_RECORDING |
41 | 38 | ||
diff --git a/apps/codecs/libwmapro/wmaprodec.c b/apps/codecs/libwmapro/wmaprodec.c index e2dff46dc9..0b5caff2f2 100644 --- a/apps/codecs/libwmapro/wmaprodec.c +++ b/apps/codecs/libwmapro/wmaprodec.c | |||
@@ -156,7 +156,11 @@ static VLC coef_vlc[2]; ///< coefficient run length vlc codes | |||
156 | static int32_t g_tmp[WMAPRO_BLOCK_MAX_SIZE] IBSS_ATTR_WMAPRO_LARGE_IRAM; | 156 | static int32_t g_tmp[WMAPRO_BLOCK_MAX_SIZE] IBSS_ATTR_WMAPRO_LARGE_IRAM; |
157 | static int32_t g_out_ch0[WMAPRO_OUT_BUF_SIZE] IBSS_ATTR; | 157 | static int32_t g_out_ch0[WMAPRO_OUT_BUF_SIZE] IBSS_ATTR; |
158 | static int32_t g_out_ch1[WMAPRO_OUT_BUF_SIZE] IBSS_ATTR_WMAPRO_LARGE_IRAM; | 158 | static int32_t g_out_ch1[WMAPRO_OUT_BUF_SIZE] IBSS_ATTR_WMAPRO_LARGE_IRAM; |
159 | static int32_t g_out_multichannel[WMAPRO_MAX_CHANNELS-2][WMAPRO_OUT_BUF_SIZE]; | 159 | #if MEMORYSIZE > 2 |
160 | /* Enable multichannel for large-memory targets only */ | ||
161 | static int32_t g_out_multichannel[WMAPRO_MAX_CHANNELS-2][WMAPRO_OUT_BUF_SIZE]; | ||
162 | # define MC_ENABLED | ||
163 | #endif | ||
160 | 164 | ||
161 | /** | 165 | /** |
162 | * @brief frame specific decoder context for a single channel | 166 | * @brief frame specific decoder context for a single channel |
@@ -301,8 +305,10 @@ int decode_init(asf_waveformatex_t *wfx) | |||
301 | /* Use globally defined arrays. Allows IRAM usage for up to 2 channels. */ | 305 | /* Use globally defined arrays. Allows IRAM usage for up to 2 channels. */ |
302 | s->channel[0].out = g_out_ch0; | 306 | s->channel[0].out = g_out_ch0; |
303 | s->channel[1].out = g_out_ch1; | 307 | s->channel[1].out = g_out_ch1; |
308 | #ifdef MC_ENABLED | ||
304 | for (i=2; i<WMAPRO_MAX_CHANNELS; ++i) | 309 | for (i=2; i<WMAPRO_MAX_CHANNELS; ++i) |
305 | s->channel[i].out = g_out_multichannel[i-2]; | 310 | s->channel[i].out = g_out_multichannel[i-2]; |
311 | #endif | ||
306 | 312 | ||
307 | #if defined(CPU_COLDFIRE) | 313 | #if defined(CPU_COLDFIRE) |
308 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); | 314 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); |