Commit 6dc12cdb authored by Alexandre Julliard's avatar Alexandre Julliard

winemp3.acm: Fix a couple of compiler warnings on Mac OS.

parent 5815b639
...@@ -290,7 +290,7 @@ static const unsigned short Mp3SampleRates[2][4] = ...@@ -290,7 +290,7 @@ static const unsigned short Mp3SampleRates[2][4] =
typedef struct tagAcmMpeg3Data typedef struct tagAcmMpeg3Data
{ {
LRESULT (*convert)(PACMDRVSTREAMINSTANCE adsi, const unsigned char*, LRESULT (*convert)(PACMDRVSTREAMINSTANCE adsi, unsigned char*,
LPDWORD, unsigned char*, LPDWORD); LPDWORD, unsigned char*, LPDWORD);
AudioConverterRef acr; AudioConverterRef acr;
AudioStreamBasicDescription in,out; AudioStreamBasicDescription in,out;
...@@ -395,7 +395,7 @@ static SInt32 Mp3GetPacketLength(const unsigned char* src) ...@@ -395,7 +395,7 @@ static SInt32 Mp3GetPacketLength(const unsigned char* src)
and *nsrc to the length of the unwanted data and return no error. and *nsrc to the length of the unwanted data and return no error.
*/ */
static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi, static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi,
const unsigned char* src, LPDWORD nsrc, unsigned char* src, LPDWORD nsrc,
unsigned char* dst, LPDWORD ndst) unsigned char* dst, LPDWORD ndst)
{ {
OSStatus err; OSStatus err;
...@@ -406,7 +406,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi, ...@@ -406,7 +406,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi,
TRACE("ndst %u %p <- %u %p\n", *ndst, dst, *nsrc, src); TRACE("ndst %u %p <- %u %p\n", *ndst, dst, *nsrc, src);
TRACE("First 16 bytes to input: %s\n", wine_dbgstr_an(src, 16)); TRACE("First 16 bytes to input: %s\n", wine_dbgstr_an((const char *)src, 16));
/* Parse ID3 tag */ /* Parse ID3 tag */
if (!memcmp(src, "ID3", 3) && amd->tagBytesLeft == -1) if (!memcmp(src, "ID3", 3) && amd->tagBytesLeft == -1)
...@@ -429,7 +429,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi, ...@@ -429,7 +429,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi,
{ {
src += amd->tagBytesLeft; src += amd->tagBytesLeft;
*nsrc -= amd->tagBytesLeft; *nsrc -= amd->tagBytesLeft;
TRACE("Skipping %d for ID3 tag\n", amd->tagBytesLeft); TRACE("Skipping %ld for ID3 tag\n", amd->tagBytesLeft);
} }
/* /*
...@@ -460,7 +460,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi, ...@@ -460,7 +460,7 @@ static LRESULT mp3_leopard_horse(PACMDRVSTREAMINSTANCE adsi,
syncSkip = psrc - src; syncSkip = psrc - src;
src += syncSkip; src += syncSkip;
*nsrc -= syncSkip; *nsrc -= syncSkip;
TRACE("Skipping %d for frame sync\n", syncSkip); TRACE("Skipping %ld for frame sync\n", syncSkip);
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment