removing some warnings.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1353 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -289,7 +289,7 @@ static UBYTE *ConvertTrack(MODNOTE *n)
|
|||||||
/* Loads all patterns of a modfile and converts them into the 3 byte format. */
|
/* Loads all patterns of a modfile and converts them into the 3 byte format. */
|
||||||
static BOOL ML_LoadPatterns(void)
|
static BOOL ML_LoadPatterns(void)
|
||||||
{
|
{
|
||||||
int t, s, tracks = 0;
|
unsigned int t, s, tracks = 0;
|
||||||
|
|
||||||
if (!AllocPatterns())
|
if (!AllocPatterns())
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -72,18 +72,18 @@ int speed_to_finetune(ULONG speed,int sample)
|
|||||||
int ctmp=0,tmp,note=1,finetune=0;
|
int ctmp=0,tmp,note=1,finetune=0;
|
||||||
|
|
||||||
speed>>=1;
|
speed>>=1;
|
||||||
while((tmp=getfrequency(of.flags,getlinearperiod(note<<1,0)))<speed) {
|
while((tmp=getfrequency(of.flags,getlinearperiod(note<<1,0)))<(int)speed) {
|
||||||
ctmp=tmp;
|
ctmp=tmp;
|
||||||
note++;
|
note++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tmp!=(int)speed) {
|
if(tmp!=(int)speed) {
|
||||||
if((tmp-speed)<(speed-ctmp))
|
if((tmp-speed)<(speed-ctmp))
|
||||||
while(tmp>speed)
|
while(tmp>(int)speed)
|
||||||
tmp=getfrequency(of.flags,getlinearperiod(note<<1,--finetune));
|
tmp=getfrequency(of.flags,getlinearperiod(note<<1,--finetune));
|
||||||
else {
|
else {
|
||||||
note--;
|
note--;
|
||||||
while(ctmp<speed)
|
while(ctmp<(int)speed)
|
||||||
ctmp=getfrequency(of.flags,getlinearperiod(note<<1,++finetune));
|
ctmp=getfrequency(of.flags,getlinearperiod(note<<1,++finetune));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user