-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alberto Meza
Sent: Wednesday, April 06, 2005 2:03 PM
To: audio-dev
Subject: [Audio-dev] CR: Remove "comparission between signed and
unsigned"and other warnings
Modified by:[EMAIL PROTECTED]
Reviewed by:
Date:4/6/2005
Project:Helix Symbian Port
Synopsis: Remove "comparission between signed and unsigned" and other
warnings
device/fakeaudiodevice.cpp
device/platform/symbian/audiosvr/mmf/audio_session-mmf.cpp
limiter/limiter.c
Branch: 150Cay and HEAD
Copyright assignment:
I agree to assign to RealNetworks full copyright ownership of the code
represented by the attached patch. I warrant that I am legally entitled to
grant the copyright assignment and that my contribution does not violate any
law or breach any contract. I understand that RealNetworks may license this
code under RPSL, RCSL, and/or any other license at RealNetworks' sole
discretion.
Index: device/fakeaudiodevice.cpp
===================================================================
RCS file: /cvsroot/audio/device/fakeaudiodevice.cpp,v
retrieving revision 1.2
diff -u -w -r1.2 fakeaudiodevice.cpp
--- device/fakeaudiodevice.cpp 14 Mar 2005 19:43:21 -0000 1.2
+++ device/fakeaudiodevice.cpp 6 Apr 2005 00:04:07 -0000
@@ -65,7 +65,7 @@
CHXFakeAudioDevice::CHXFakeAudioDevice()
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::CHXFakeAudioDevice()\n",
this);
+ fprintf(stderr, "0x%08x::CHXFakeAudioDevice::CHXFakeAudioDevice()\n",
(unsigned int)this);
m_pContext = NULL;
m_pScheduler = NULL;
m_lRefCount = 0;
@@ -84,7 +84,7 @@
CHXFakeAudioDevice::~CHXFakeAudioDevice()
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::~CHXFakeAudioDevice()\n",
this);
+ fprintf(stderr,
"0x%08x::CHXFakeAudioDevice::~CHXFakeAudioDevice()\n",(unsigned int) this);
Close(TRUE);
HX_RELEASE(m_pContext);
HX_RELEASE(m_pScheduler);
@@ -138,7 +138,7 @@
STDMETHODIMP CHXFakeAudioDevice::Open(const HXAudioFormat* pAudioFormat,
IHXAudioDeviceResponse* pStreamResponse)
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Open()\n", this);
+ fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Open()\n", (unsigned
int)this);
HX_RESULT retVal = HXR_FAIL;
if (pAudioFormat && pStreamResponse && m_pContext && m_eState ==
StateClosed)
@@ -162,7 +162,7 @@
STDMETHODIMP CHXFakeAudioDevice::Close(const HXBOOL bFlush)
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Close(%lu)\n", this,
bFlush);
+ fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Close(%u)\n", (unsigned
int)this, bFlush);
// Clear any pending callbacks
ClearCallback();
// Release the response interface
@@ -175,7 +175,7 @@
STDMETHODIMP CHXFakeAudioDevice::Resume()
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Resume()\n", this);
+ fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Resume()\n", (unsigned
int)this);
HX_RESULT retVal = HXR_FAIL;
if (m_pScheduler && m_pResponse && m_pCallbackTime &&
@@ -206,7 +206,7 @@
STDMETHODIMP CHXFakeAudioDevice::Pause()
{
- fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Pause()\n", this);
+ fprintf(stderr, "0x%08x::CHXFakeAudioDevice::Pause()\n", (unsigned
int)this);
HX_RESULT retVal = HXR_OK;
if (m_eState == StateResumed)
Index: device/platform/symbian/audiosvr/mmf/audio_session-mmf.cpp
===================================================================
RCS file:
/cvsroot/audio/device/platform/symbian/audiosvr/mmf/audio_session-mmf.cpp,v
retrieving revision 1.6
diff -u -w -r1.6 audio_session-mmf.cpp
--- device/platform/symbian/audiosvr/mmf/audio_session-mmf.cpp 4 Apr 2005
23:08:45 -0000 1.6
+++ device/platform/symbian/audiosvr/mmf/audio_session-mmf.cpp 6 Apr 2005
00:04:08 -0000
@@ -165,7 +165,7 @@
const char * StringifyKErr(TInt err) { return 0; }
#endif
-static TInt FlagToNumber(TMMFSampleRate flag)
+TInt FlagToNumber(TMMFSampleRate flag)
{
switch( flag )
{
Index: limiter/limiter.c
===================================================================
RCS file: /cvsroot/audio/limiter/limiter.c,v
retrieving revision 1.5
diff -u -w -r1.5 limiter.c
--- limiter/limiter.c 9 Jul 2004 18:36:57 -0000 1.5
+++ limiter/limiter.c 6 Apr 2005 00:06:26 -0000
@@ -271,7 +271,7 @@
/* compute the required attenuation */
if (pcmpeak == 0x80000000UL)
atten = MulShift31(FIX_ONE, lim->threshold) ;
- else if ((signed)pcmpeak > lim->threshold)
+ else if (pcmpeak > lim->threshold)
atten = MulDiv64(FIX_ONE, lim->threshold, pcmpeak);
else
atten = FIX_ONE;
@@ -374,7 +374,7 @@
/* compute the required attenuation */
if (pcmpeak == 0x80000000UL)
atten = MulShift31(FIX_ONE, lim->threshold) ;
- else if ((signed)pcmpeak > lim->threshold)
+ else if (pcmpeak > lim->threshold)
atten = MulDiv64(FIX_ONE, lim->threshold, pcmpeak);
else
atten = FIX_ONE;
_______________________________________________
Audio-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/audio-dev