summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/codec_thread.c5
-rw-r--r--lib/rbcodec/codecs/a52.c2
-rw-r--r--lib/rbcodec/codecs/a52_rm.c2
-rw-r--r--lib/rbcodec/codecs/aac.c2
-rw-r--r--lib/rbcodec/codecs/adx.c2
-rw-r--r--lib/rbcodec/codecs/aiff.c2
-rw-r--r--lib/rbcodec/codecs/aiff_enc.c2
-rw-r--r--lib/rbcodec/codecs/alac.c2
-rw-r--r--lib/rbcodec/codecs/ape.c2
-rw-r--r--lib/rbcodec/codecs/asap.c2
-rw-r--r--lib/rbcodec/codecs/atrac3_oma.c2
-rw-r--r--lib/rbcodec/codecs/atrac3_rm.c2
-rw-r--r--lib/rbcodec/codecs/au.c2
-rw-r--r--lib/rbcodec/codecs/ay.c2
-rw-r--r--lib/rbcodec/codecs/codecs.h10
-rw-r--r--lib/rbcodec/codecs/cook.c2
-rw-r--r--lib/rbcodec/codecs/flac.c2
-rw-r--r--lib/rbcodec/codecs/gbs.c2
-rw-r--r--lib/rbcodec/codecs/hes.c2
-rw-r--r--lib/rbcodec/codecs/kss.c2
-rw-r--r--lib/rbcodec/codecs/mod.c2
-rw-r--r--lib/rbcodec/codecs/mp3_enc.c2
-rw-r--r--lib/rbcodec/codecs/mpa.c2
-rw-r--r--lib/rbcodec/codecs/mpc.c2
-rw-r--r--lib/rbcodec/codecs/nsf.c2
-rw-r--r--lib/rbcodec/codecs/opus.c2
-rw-r--r--lib/rbcodec/codecs/raac.c2
-rw-r--r--lib/rbcodec/codecs/sgc.c2
-rw-r--r--lib/rbcodec/codecs/shorten.c2
-rw-r--r--lib/rbcodec/codecs/sid.c2
-rw-r--r--lib/rbcodec/codecs/smaf.c2
-rw-r--r--lib/rbcodec/codecs/spc.c2
-rw-r--r--lib/rbcodec/codecs/speex.c2
-rw-r--r--lib/rbcodec/codecs/tta.c2
-rw-r--r--lib/rbcodec/codecs/vgm.c2
-rw-r--r--lib/rbcodec/codecs/vorbis.c2
-rw-r--r--lib/rbcodec/codecs/vox.c2
-rw-r--r--lib/rbcodec/codecs/wav.c2
-rw-r--r--lib/rbcodec/codecs/wav64.c2
-rw-r--r--lib/rbcodec/codecs/wav_enc.c2
-rw-r--r--lib/rbcodec/codecs/wavpack.c2
-rw-r--r--lib/rbcodec/codecs/wavpack_enc.c2
-rw-r--r--[-rwxr-xr-x]lib/rbcodec/codecs/wma.c2
-rw-r--r--lib/rbcodec/codecs/wmapro.c2
-rw-r--r--lib/rbcodec/codecs/wmavoice.c2
-rw-r--r--lib/rbcodec/test/warble.c6
46 files changed, 55 insertions, 52 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index a1fa96d021..b511809d6d 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -349,8 +349,7 @@ static void codec_configure_callback(int setting, intptr_t value)
dsp_configure(ci.dsp, setting, value);
}
-static enum codec_command_action
- codec_get_command_callback(intptr_t *param)
+static long codec_get_command_callback(intptr_t *param)
{
yield();
@@ -361,7 +360,7 @@ static enum codec_command_action
be expected) */
while (1)
{
- enum codec_command_action action = CODEC_ACTION_NULL;
+ long action = CODEC_ACTION_NULL;
struct queue_event ev;
queue_peek(&codec_queue, &ev); /* Find out what it is */
diff --git a/lib/rbcodec/codecs/a52.c b/lib/rbcodec/codecs/a52.c
index da670308b8..3d7e56df03 100644
--- a/lib/rbcodec/codecs/a52.c
+++ b/lib/rbcodec/codecs/a52.c
@@ -173,7 +173,7 @@ enum codec_status codec_run(void)
/* The main decoding loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/a52_rm.c b/lib/rbcodec/codecs/a52_rm.c
index 3f07a43ce9..bbfd1c735f 100644
--- a/lib/rbcodec/codecs/a52_rm.c
+++ b/lib/rbcodec/codecs/a52_rm.c
@@ -148,7 +148,7 @@ enum codec_status codec_run(void)
int consumed, packet_offset;
int playback_on = -1;
size_t resume_offset;
- enum codec_command_action action;
+ long action;
intptr_t param;
if (codec_init()) {
diff --git a/lib/rbcodec/codecs/aac.c b/lib/rbcodec/codecs/aac.c
index 015e332be2..5e289f0306 100644
--- a/lib/rbcodec/codecs/aac.c
+++ b/lib/rbcodec/codecs/aac.c
@@ -72,7 +72,7 @@ enum codec_status codec_run(void)
uint32_t sbr_fac = 1;
unsigned char c = 0;
void *ret;
- enum codec_command_action action;
+ long action;
intptr_t param;
bool empty_first_frame = false;
diff --git a/lib/rbcodec/codecs/adx.c b/lib/rbcodec/codecs/adx.c
index 8a56320787..e6e4c6fe5f 100644
--- a/lib/rbcodec/codecs/adx.c
+++ b/lib/rbcodec/codecs/adx.c
@@ -236,7 +236,7 @@ enum codec_status codec_run(void)
/* The main decoder loop */
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/aiff.c b/lib/rbcodec/codecs/aiff.c
index 210c2065db..2900ed2ecb 100644
--- a/lib/rbcodec/codecs/aiff.c
+++ b/lib/rbcodec/codecs/aiff.c
@@ -305,7 +305,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/aiff_enc.c b/lib/rbcodec/codecs/aiff_enc.c
index f199e70743..8dec0bbff3 100644
--- a/lib/rbcodec/codecs/aiff_enc.c
+++ b/lib/rbcodec/codecs/aiff_enc.c
@@ -207,7 +207,7 @@ enum codec_status ICODE_ATTR codec_run(void)
/* main encoding loop */
while (1)
{
- enum codec_command_action action = ci->get_command(NULL);
+ long action = ci->get_command(NULL);
if (action != CODEC_ACTION_NULL)
break;
diff --git a/lib/rbcodec/codecs/alac.c b/lib/rbcodec/codecs/alac.c
index a3a5ad43b8..35c3645657 100644
--- a/lib/rbcodec/codecs/alac.c
+++ b/lib/rbcodec/codecs/alac.c
@@ -109,7 +109,7 @@ enum codec_status codec_run(void)
/* The main decoding loop */
while (i < demux_res.num_sample_byte_sizes) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/ape.c b/lib/rbcodec/codecs/ape.c
index a6c5254d45..0adc793ade 100644
--- a/lib/rbcodec/codecs/ape.c
+++ b/lib/rbcodec/codecs/ape.c
@@ -155,7 +155,7 @@ enum codec_status codec_run(void)
int res;
int firstbyte;
size_t resume_offset;
- enum codec_command_action action;
+ long action;
intptr_t param;
if (codec_init()) {
diff --git a/lib/rbcodec/codecs/asap.c b/lib/rbcodec/codecs/asap.c
index 2c350ba450..8d1eb447cc 100644
--- a/lib/rbcodec/codecs/asap.c
+++ b/lib/rbcodec/codecs/asap.c
@@ -107,7 +107,7 @@ enum codec_status codec_run(void)
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/atrac3_oma.c b/lib/rbcodec/codecs/atrac3_oma.c
index 65d9ed8b38..d394fffdcb 100644
--- a/lib/rbcodec/codecs/atrac3_oma.c
+++ b/lib/rbcodec/codecs/atrac3_oma.c
@@ -50,7 +50,7 @@ enum codec_status codec_run(void)
int elapsed = 0;
size_t resume_offset;
intptr_t param;
- enum codec_command_action action;
+ long action;
if (codec_init()) {
DEBUGF("codec init failed\n");
diff --git a/lib/rbcodec/codecs/atrac3_rm.c b/lib/rbcodec/codecs/atrac3_rm.c
index 4b528c0a8d..59dbd29cad 100644
--- a/lib/rbcodec/codecs/atrac3_rm.c
+++ b/lib/rbcodec/codecs/atrac3_rm.c
@@ -61,7 +61,7 @@ enum codec_status codec_run(void)
int playback_on = -1;
size_t resume_offset;
intptr_t param;
- enum codec_command_action action;
+ long action;
if (codec_init()) {
DEBUGF("codec init failed\n");
diff --git a/lib/rbcodec/codecs/au.c b/lib/rbcodec/codecs/au.c
index 388c241140..632d6d64dd 100644
--- a/lib/rbcodec/codecs/au.c
+++ b/lib/rbcodec/codecs/au.c
@@ -270,7 +270,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/ay.c b/lib/rbcodec/codecs/ay.c
index 88936df131..dc7b360a9c 100644
--- a/lib/rbcodec/codecs/ay.c
+++ b/lib/rbcodec/codecs/ay.c
@@ -97,7 +97,7 @@ next_track:
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/codecs.h b/lib/rbcodec/codecs/codecs.h
index afe33f0a5c..e04727fea8 100644
--- a/lib/rbcodec/codecs/codecs.h
+++ b/lib/rbcodec/codecs/codecs.h
@@ -46,6 +46,8 @@
#include "gcc_extensions.h"
#include "load_code.h"
+#include <limits.h>
+
#ifdef CODEC
#if defined(DEBUG) || defined(SIMULATOR)
#undef DEBUGF
@@ -72,12 +74,12 @@
#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
/* increase this every time the api struct changes */
-#define CODEC_API_VERSION 47
+#define CODEC_API_VERSION 48
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define CODEC_MIN_API_VERSION 47
+#define CODEC_MIN_API_VERSION 48
/* reasons for calling codec main entrypoint */
enum codec_entry_call_reason {
@@ -99,6 +101,8 @@ enum codec_command_action {
#ifdef HAVE_RECORDING
CODEC_ACTION_STREAM_FINISH = 2,
#endif
+ CODEC_ACTION_MIN = LONG_MIN,
+ CODEC_ACTION_MAX = LONG_MAX,
};
/* NOTE: To support backwards compatibility, only add new functions at
@@ -144,7 +148,7 @@ struct codec_api {
/* Configure different codec buffer parameters. */
void (*configure)(int setting, intptr_t value);
/* Obtain command action on what to do next */
- enum codec_command_action (*get_command)(intptr_t *param);
+ long (*get_command)(intptr_t *param);
/* Determine whether the track should be looped, if applicable. */
bool (*loop_track)(void);
diff --git a/lib/rbcodec/codecs/cook.c b/lib/rbcodec/codecs/cook.c
index 402d1d3fa6..af1f5e1a87 100644
--- a/lib/rbcodec/codecs/cook.c
+++ b/lib/rbcodec/codecs/cook.c
@@ -57,7 +57,7 @@ enum codec_status codec_run(void)
int scrambling_unit_size, num_units;
size_t resume_offset;
intptr_t param;
- enum codec_command_action action;
+ long action;
if (codec_init()) {
DEBUGF("codec init failed\n");
diff --git a/lib/rbcodec/codecs/flac.c b/lib/rbcodec/codecs/flac.c
index eab6e7c2bc..753115dc30 100644
--- a/lib/rbcodec/codecs/flac.c
+++ b/lib/rbcodec/codecs/flac.c
@@ -498,7 +498,7 @@ enum codec_status codec_run(void)
frame=0;
buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE);
while (bytesleft) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/gbs.c b/lib/rbcodec/codecs/gbs.c
index 717f56c82f..01dab45586 100644
--- a/lib/rbcodec/codecs/gbs.c
+++ b/lib/rbcodec/codecs/gbs.c
@@ -86,7 +86,7 @@ next_track:
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/hes.c b/lib/rbcodec/codecs/hes.c
index 56f49621c6..59e5c07df0 100644
--- a/lib/rbcodec/codecs/hes.c
+++ b/lib/rbcodec/codecs/hes.c
@@ -86,7 +86,7 @@ next_track:
/* The main decoder loop */
while ( 1 ) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/kss.c b/lib/rbcodec/codecs/kss.c
index e6cf866cdd..bd5124d2f4 100644
--- a/lib/rbcodec/codecs/kss.c
+++ b/lib/rbcodec/codecs/kss.c
@@ -89,7 +89,7 @@ next_track:
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/mod.c b/lib/rbcodec/codecs/mod.c
index 3d5f729235..d0d7e1d996 100644
--- a/lib/rbcodec/codecs/mod.c
+++ b/lib/rbcodec/codecs/mod.c
@@ -1333,7 +1333,7 @@ enum codec_status codec_run(void)
old_patterntableposition = 0;
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/mp3_enc.c b/lib/rbcodec/codecs/mp3_enc.c
index 030eda846e..fecffc516f 100644
--- a/lib/rbcodec/codecs/mp3_enc.c
+++ b/lib/rbcodec/codecs/mp3_enc.c
@@ -2961,7 +2961,7 @@ enum codec_status codec_run(void)
while (1)
{
intptr_t param;
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action != CODEC_ACTION_NULL)
{
diff --git a/lib/rbcodec/codecs/mpa.c b/lib/rbcodec/codecs/mpa.c
index ca12087e87..0e7b4faf4f 100644
--- a/lib/rbcodec/codecs/mpa.c
+++ b/lib/rbcodec/codecs/mpa.c
@@ -392,7 +392,7 @@ enum codec_status codec_run(void)
/* This is the decoding loop. */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/mpc.c b/lib/rbcodec/codecs/mpc.c
index 79f2aa22db..a856f6f3d1 100644
--- a/lib/rbcodec/codecs/mpc.c
+++ b/lib/rbcodec/codecs/mpc.c
@@ -148,7 +148,7 @@ enum codec_status codec_run(void)
/* This is the decoding loop. */
do
{
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
return CODEC_OK;
diff --git a/lib/rbcodec/codecs/nsf.c b/lib/rbcodec/codecs/nsf.c
index cbdf8e3ec5..61035dbd3f 100644
--- a/lib/rbcodec/codecs/nsf.c
+++ b/lib/rbcodec/codecs/nsf.c
@@ -95,7 +95,7 @@ next_track:
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/opus.c b/lib/rbcodec/codecs/opus.c
index 058880c149..1ce7f19dfd 100644
--- a/lib/rbcodec/codecs/opus.c
+++ b/lib/rbcodec/codecs/opus.c
@@ -314,7 +314,7 @@ enum codec_status codec_main(enum codec_entry_call_reason reason)
enum codec_status codec_run(void)
{
int error = CODEC_ERROR;
- enum codec_command_action action;
+ long action;
intptr_t param;
ogg_sync_state oy;
ogg_page og;
diff --git a/lib/rbcodec/codecs/raac.c b/lib/rbcodec/codecs/raac.c
index d2d3531028..e77d432680 100644
--- a/lib/rbcodec/codecs/raac.c
+++ b/lib/rbcodec/codecs/raac.c
@@ -63,7 +63,7 @@ enum codec_status codec_run(void)
unsigned char c = 0; /* channels */
int playback_on = -1;
size_t resume_offset;
- enum codec_command_action action;
+ long action;
intptr_t param;
if (codec_init()) {
diff --git a/lib/rbcodec/codecs/sgc.c b/lib/rbcodec/codecs/sgc.c
index eb260975c5..e8927f16a6 100644
--- a/lib/rbcodec/codecs/sgc.c
+++ b/lib/rbcodec/codecs/sgc.c
@@ -101,7 +101,7 @@ next_track:
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/shorten.c b/lib/rbcodec/codecs/shorten.c
index aa4acdad4a..f171b69a64 100644
--- a/lib/rbcodec/codecs/shorten.c
+++ b/lib/rbcodec/codecs/shorten.c
@@ -110,7 +110,7 @@ seek_start:
samplesdone = 0;
buf = ci->request_buffer(&bytesleft, MAX_BUFFER_SIZE);
while (bytesleft) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/sid.c b/lib/rbcodec/codecs/sid.c
index 3c370961c7..9811745310 100644
--- a/lib/rbcodec/codecs/sid.c
+++ b/lib/rbcodec/codecs/sid.c
@@ -1277,7 +1277,7 @@ enum codec_status codec_run(void)
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/smaf.c b/lib/rbcodec/codecs/smaf.c
index eed9d39db4..5da8eb9aff 100644
--- a/lib/rbcodec/codecs/smaf.c
+++ b/lib/rbcodec/codecs/smaf.c
@@ -446,7 +446,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/spc.c b/lib/rbcodec/codecs/spc.c
index 809562e2a0..dbec407d6a 100644
--- a/lib/rbcodec/codecs/spc.c
+++ b/lib/rbcodec/codecs/spc.c
@@ -453,7 +453,7 @@ static int play_track( void )
while ( 1 )
{
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/speex.c b/lib/rbcodec/codecs/speex.c
index a073151ee2..e1be971096 100644
--- a/lib/rbcodec/codecs/speex.c
+++ b/lib/rbcodec/codecs/speex.c
@@ -405,7 +405,7 @@ enum codec_status codec_run(void)
unsigned long strtoffset;
void *st = NULL;
int j = 0;
- enum codec_command_action action;
+ long action;
intptr_t param;
memset(&bits, 0, sizeof(bits));
diff --git a/lib/rbcodec/codecs/tta.c b/lib/rbcodec/codecs/tta.c
index b7660a920f..60481c9f28 100644
--- a/lib/rbcodec/codecs/tta.c
+++ b/lib/rbcodec/codecs/tta.c
@@ -104,7 +104,7 @@ enum codec_status codec_run(void)
while (!endofstream)
{
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/vgm.c b/lib/rbcodec/codecs/vgm.c
index 126305944f..e8328d3b79 100644
--- a/lib/rbcodec/codecs/vgm.c
+++ b/lib/rbcodec/codecs/vgm.c
@@ -135,7 +135,7 @@ enum codec_status codec_run(void)
/* The main decoder loop */
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/vorbis.c b/lib/rbcodec/codecs/vorbis.c
index a1ef68b6ba..83c9d5b31d 100644
--- a/lib/rbcodec/codecs/vorbis.c
+++ b/lib/rbcodec/codecs/vorbis.c
@@ -206,7 +206,7 @@ enum codec_status codec_run(void)
previous_section = -1;
while (1) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/vox.c b/lib/rbcodec/codecs/vox.c
index 69eafc72ff..5ce2a0fb58 100644
--- a/lib/rbcodec/codecs/vox.c
+++ b/lib/rbcodec/codecs/vox.c
@@ -159,7 +159,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/wav.c b/lib/rbcodec/codecs/wav.c
index 0441be78b8..445d3e8dde 100644
--- a/lib/rbcodec/codecs/wav.c
+++ b/lib/rbcodec/codecs/wav.c
@@ -396,7 +396,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/wav64.c b/lib/rbcodec/codecs/wav64.c
index a74c932e0e..198e7c79e3 100644
--- a/lib/rbcodec/codecs/wav64.c
+++ b/lib/rbcodec/codecs/wav64.c
@@ -400,7 +400,7 @@ enum codec_status codec_run(void)
endofstream = 0;
while (!endofstream) {
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/wav_enc.c b/lib/rbcodec/codecs/wav_enc.c
index 93bb9aa8ac..0f56eb836c 100644
--- a/lib/rbcodec/codecs/wav_enc.c
+++ b/lib/rbcodec/codecs/wav_enc.c
@@ -188,7 +188,7 @@ enum codec_status ICODE_ATTR codec_run(void)
/* main encoding loop */
while (1)
{
- enum codec_command_action action = ci->get_command(NULL);
+ long action = ci->get_command(NULL);
if (action != CODEC_ACTION_NULL)
break;
diff --git a/lib/rbcodec/codecs/wavpack.c b/lib/rbcodec/codecs/wavpack.c
index d9c294397c..71ff88e2ea 100644
--- a/lib/rbcodec/codecs/wavpack.c
+++ b/lib/rbcodec/codecs/wavpack.c
@@ -90,7 +90,7 @@ enum codec_status codec_run(void)
while (1) {
int32_t nsamples;
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/wavpack_enc.c b/lib/rbcodec/codecs/wavpack_enc.c
index ffb090f6ec..bdd999b14a 100644
--- a/lib/rbcodec/codecs/wavpack_enc.c
+++ b/lib/rbcodec/codecs/wavpack_enc.c
@@ -353,7 +353,7 @@ enum codec_status codec_run(void)
/* main encoding loop */
while (1)
{
- enum codec_command_action action = ci->get_command(NULL);
+ long action = ci->get_command(NULL);
if (action != CODEC_ACTION_NULL)
break;
diff --git a/lib/rbcodec/codecs/wma.c b/lib/rbcodec/codecs/wma.c
index 9a5e0c71fa..7583846929 100755..100644
--- a/lib/rbcodec/codecs/wma.c
+++ b/lib/rbcodec/codecs/wma.c
@@ -52,7 +52,7 @@ enum codec_status codec_run(void)
int audiobufsize;
int packetlength = 0;
int errcount = 0;
- enum codec_command_action action;
+ long action;
intptr_t param;
/* Remember the resume position - when the codec is opened, the
diff --git a/lib/rbcodec/codecs/wmapro.c b/lib/rbcodec/codecs/wmapro.c
index 540140b1e2..f874db25f9 100644
--- a/lib/rbcodec/codecs/wmapro.c
+++ b/lib/rbcodec/codecs/wmapro.c
@@ -93,7 +93,7 @@ restart_track:
while (pktcnt < wfx.numpackets)
{
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/codecs/wmavoice.c b/lib/rbcodec/codecs/wmavoice.c
index 4c89c6dc96..2c37da8734 100644
--- a/lib/rbcodec/codecs/wmavoice.c
+++ b/lib/rbcodec/codecs/wmavoice.c
@@ -120,7 +120,7 @@ restart_track:
while (pktcnt < wfx.numpackets)
{
- enum codec_command_action action = ci->get_command(&param);
+ long action = ci->get_command(&param);
if (action == CODEC_ACTION_HALT)
break;
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c
index a203d6f1da..cb7a85ff25 100644
--- a/lib/rbcodec/test/warble.c
+++ b/lib/rbcodec/test/warble.c
@@ -108,7 +108,7 @@ static const char *config = "";
static uint32_t playback_vol_factor = VOL_FACTOR_UNITY;
static int input_fd;
-static enum codec_command_action codec_action;
+static long codec_action;
static intptr_t codec_action_param = 0;
static unsigned long num_output_samples = 0;
static struct codec_api ci;
@@ -606,9 +606,9 @@ static void ci_configure(int setting, intptr_t value)
}
}
-static enum codec_command_action ci_get_command(intptr_t *param)
+static long ci_get_command(intptr_t *param)
{
- enum codec_command_action ret = codec_action;
+ long ret = codec_action;
*param = codec_action_param;
codec_action = CODEC_ACTION_NULL;
return ret;