aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c
index 82909fcc7..b1c0bb012 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -47,8 +47,6 @@
#include <unistd.h>
#include <string.h>
-#define FADE_CHUNKS 1024
-
int * decode_pid = NULL;
void decodeSigHandler(int sig) {
@@ -91,7 +89,7 @@ void quitDecode(PlayerControl * pc, DecoderControl * dc) {
}
int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
- int chunks;
+ long chunks;
if(pc->crossFade<=0) return 0;
@@ -104,7 +102,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
if(chunks<0) chunks = 0;
- return chunks;
+ return (int)chunks;
}
int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,