Add helpful values to the resampler enum

This commit is contained in:
Chris Robinson
2010-01-11 07:02:29 -08:00
parent 93b584ff84
commit 3d7f925d52
3 changed files with 12 additions and 4 deletions
+3 -3
View File
@@ -268,9 +268,9 @@ static void alc_init(void)
RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 0);
DefaultResampler = GetConfigValueInt(NULL, "resampler", LINEAR);
if(DefaultResampler >= RESAMPLER_MAX || DefaultResampler < POINT)
DefaultResampler = LINEAR;
DefaultResampler = GetConfigValueInt(NULL, "resampler", RESAMPLER_DEFAULT);
if(DefaultResampler >= RESAMPLER_MAX || DefaultResampler <= RESAMPLER_MIN)
DefaultResampler = RESAMPLER_DEFAULT;
devs = GetConfigValue(NULL, "drivers", "");
if(devs[0])
+6
View File
@@ -1113,6 +1113,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
@@ -1162,6 +1163,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
@@ -1182,6 +1184,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
@@ -1203,6 +1206,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
@@ -1225,6 +1229,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
@@ -1247,6 +1252,7 @@ another_source:
break;
case COSINE: DO_MIX(cos_lerp);
break;
case RESAMPLER_MIN:
case RESAMPLER_MAX:
break;
}
+3 -1
View File
@@ -27,7 +27,9 @@ typedef enum {
LINEAR,
COSINE,
RESAMPLER_MAX
RESAMPLER_MAX,
RESAMPLER_MIN = -1,
RESAMPLER_DEFAULT = LINEAR
} resampler_t;
extern resampler_t DefaultResampler;