mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
8198f65d50
commit
86aa43e207
6 changed files with 20 additions and 16 deletions
|
@ -148,7 +148,7 @@ public:
|
||||||
* for the HighestPri source.
|
* for the HighestPri source.
|
||||||
* By default, reserve are set for each channel to the number of available tracks.
|
* By default, reserve are set for each channel to the number of available tracks.
|
||||||
*/
|
*/
|
||||||
virtual void setPriorityReserve(TSoundPriority priorityChannel, size_t reserve);
|
virtual void setPriorityReserve(TSoundPriority priorityChannel, uint reserve);
|
||||||
/** Set the Low water mark.
|
/** Set the Low water mark.
|
||||||
* This value is use to mute sound source that try to play when there priority
|
* This value is use to mute sound source that try to play when there priority
|
||||||
* channel is full (see setPriorityReserve).
|
* channel is full (see setPriorityReserve).
|
||||||
|
@ -161,7 +161,7 @@ public:
|
||||||
* available tracks (witch is almos alwais the case). But this value will help
|
* available tracks (witch is almos alwais the case). But this value will help
|
||||||
* the mixer make it's best.
|
* the mixer make it's best.
|
||||||
*/
|
*/
|
||||||
virtual void setLowWaterMark(size_t value);
|
virtual void setLowWaterMark(uint value);
|
||||||
|
|
||||||
virtual void changeMaxTrack(uint maxTrack);
|
virtual void changeMaxTrack(uint maxTrack);
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ public:
|
||||||
* for the HighestPri source.
|
* for the HighestPri source.
|
||||||
* By default, reserve are set for each channel to the number of available tracks.
|
* By default, reserve are set for each channel to the number of available tracks.
|
||||||
*/
|
*/
|
||||||
virtual void setPriorityReserve(TSoundPriority priorityChannel, size_t reserve) = 0;
|
virtual void setPriorityReserve(TSoundPriority priorityChannel, uint reserve) = 0;
|
||||||
/** Set the Low water mark.
|
/** Set the Low water mark.
|
||||||
* This value is use to mute sound source that try to play when their priority
|
* This value is use to mute sound source that try to play when their priority
|
||||||
* channel is full (see setPriorityReserve).
|
* channel is full (see setPriorityReserve).
|
||||||
|
@ -242,7 +242,7 @@ public:
|
||||||
* available tracks (which is almost always the case). But this value will help
|
* available tracks (which is almost always the case). But this value will help
|
||||||
* the mixer make its best.
|
* the mixer make its best.
|
||||||
*/
|
*/
|
||||||
virtual void setLowWaterMark(size_t value) = 0;
|
virtual void setLowWaterMark(uint value) = 0;
|
||||||
/** Change the number of tracks in RealTime. If the number is lowered, random tracks are deleted.
|
/** Change the number of tracks in RealTime. If the number is lowered, random tracks are deleted.
|
||||||
* Any playing sources of such deleted track will be stopped
|
* Any playing sources of such deleted track will be stopped
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2964,7 +2964,7 @@ pixelshader water_diffuse_2_0 = asm \n\
|
||||||
//bias result (include scaling) \n\
|
//bias result (include scaling) \n\
|
||||||
mad r0.xy, r0, c1.z, c1; \n\
|
mad r0.xy, r0, c1.z, c1; \n\
|
||||||
//add envmap coord \n\
|
//add envmap coord \n\
|
||||||
add r0.xy, r0, t2; \n\
|
add r0.xy, r0, t2; \n\
|
||||||
// read envmap \n\
|
// read envmap \n\
|
||||||
texld r0, r0, s2; \n\
|
texld r0, r0, s2; \n\
|
||||||
// read diffuse \n\
|
// read diffuse \n\
|
||||||
|
@ -3073,7 +3073,7 @@ pixelshader water_no_diffuse_2_0 = asm \n\
|
||||||
//bias result (include scaling) \n\
|
//bias result (include scaling) \n\
|
||||||
mad r0.xy, r0, c1.z, c1; \n\
|
mad r0.xy, r0, c1.z, c1; \n\
|
||||||
//add envmap coord \n\
|
//add envmap coord \n\
|
||||||
add r0.xy, r0, t2; \n\
|
add r0.xy, r0, t2; \n\
|
||||||
//read envmap \n\
|
//read envmap \n\
|
||||||
texld r0, r0, s2; \n\
|
texld r0, r0, s2; \n\
|
||||||
mov oC0, r0; \n\
|
mov oC0, r0; \n\
|
||||||
|
|
|
@ -545,6 +545,10 @@ void CTextureFar::rebuildPatch (const CVector2s texturePos, const CPatchIdent &p
|
||||||
|
|
||||||
// ** Fill the struct for the tile fill method for each layers
|
// ** Fill the struct for the tile fill method for each layers
|
||||||
NL3D_CComputeTileFar TileFar;
|
NL3D_CComputeTileFar TileFar;
|
||||||
|
TileFar.SrcDiffusePixels = NULL;
|
||||||
|
TileFar.SrcAdditivePixels = NULL;
|
||||||
|
TileFar.SrcDeltaX = 0;
|
||||||
|
TileFar.SrcDeltaY = 0;
|
||||||
TileFar.AsmMMX= false;
|
TileFar.AsmMMX= false;
|
||||||
#if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM)
|
#if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM)
|
||||||
TileFar.AsmMMX= NLMISC::CSystemInfo::hasMMX();
|
TileFar.AsmMMX= NLMISC::CSystemInfo::hasMMX();
|
||||||
|
|
|
@ -1411,7 +1411,7 @@ void CZone::setTileColor(bool monochrome, float factor)
|
||||||
void CZone::debugBinds(FILE *f)
|
void CZone::debugBinds(FILE *f)
|
||||||
{
|
{
|
||||||
fprintf(f, "*****************************\n");
|
fprintf(f, "*****************************\n");
|
||||||
fprintf(f, "ZoneId: %d. NPatchs:%zu\n", ZoneId, PatchConnects.size());
|
fprintf(f, "ZoneId: %d. NPatchs:%u\n", ZoneId, (uint)PatchConnects.size());
|
||||||
sint i;
|
sint i;
|
||||||
for(i=0;i<(sint)PatchConnects.size();i++)
|
for(i=0;i<(sint)PatchConnects.size();i++)
|
||||||
{
|
{
|
||||||
|
@ -1420,10 +1420,10 @@ void CZone::debugBinds(FILE *f)
|
||||||
for(sint j=0;j<4;j++)
|
for(sint j=0;j<4;j++)
|
||||||
{
|
{
|
||||||
CPatchInfo::CBindInfo &bd= pc.BindEdges[j];
|
CPatchInfo::CBindInfo &bd= pc.BindEdges[j];
|
||||||
fprintf(f, " edge%d: Zone:%d. NPatchs:%d. ", j, bd.ZoneId, bd.NPatchs);
|
fprintf(f, " edge%d: Zone:%u. NPatchs:%u. ", j, (uint)bd.ZoneId, (uint)bd.NPatchs);
|
||||||
for(sint k=0;k<bd.NPatchs;k++)
|
for(sint k=0;k<bd.NPatchs;k++)
|
||||||
{
|
{
|
||||||
fprintf(f, "p%de%d - ", bd.Next[k], bd.Edge[k]);
|
fprintf(f, "p%ue%u - ", (uint)bd.Next[k], (uint)bd.Edge[k]);
|
||||||
}
|
}
|
||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
}
|
}
|
||||||
|
@ -1432,9 +1432,9 @@ void CZone::debugBinds(FILE *f)
|
||||||
fprintf(f,"Vertices :\n");
|
fprintf(f,"Vertices :\n");
|
||||||
for(i=0;i<(sint)BorderVertices.size();i++)
|
for(i=0;i<(sint)BorderVertices.size();i++)
|
||||||
{
|
{
|
||||||
fprintf(f,"current : %d -> (zone %d) vertex %d\n",BorderVertices[i].CurrentVertex,
|
fprintf(f,"current : %u -> (zone %u) vertex %u\n", (uint)BorderVertices[i].CurrentVertex,
|
||||||
BorderVertices[i].NeighborZoneId,
|
(uint)BorderVertices[i].NeighborZoneId,
|
||||||
BorderVertices[i].NeighborVertex);
|
(uint)BorderVertices[i].NeighborVertex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,14 +177,14 @@ void CAudioMixerUser::initClusteredSound(NL3D::CScene *scene, float minGain, flo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CAudioMixerUser::setPriorityReserve(TSoundPriority priorityChannel, size_t reserve)
|
void CAudioMixerUser::setPriorityReserve(TSoundPriority priorityChannel, uint reserve)
|
||||||
{
|
{
|
||||||
_PriorityReserve[priorityChannel] = (uint32)min(_Tracks.size(), reserve);
|
_PriorityReserve[priorityChannel] = (uint32)min((uint)_Tracks.size(), reserve);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAudioMixerUser::setLowWaterMark(size_t value)
|
void CAudioMixerUser::setLowWaterMark(uint value)
|
||||||
{
|
{
|
||||||
_LowWaterMark = (uint32)min(_Tracks.size(), value);
|
_LowWaterMark = (uint32)min((uint)_Tracks.size(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue