Fix a few type comparison warnings.

This commit is contained in:
Unknown W. Brackets 2015-02-22 13:31:23 -08:00
parent 3f4cb7fb3e
commit a8b59e171b
3 changed files with 4 additions and 4 deletions

View File

@ -406,7 +406,7 @@ struct AtracResetBufferInfo {
const int PSP_NUM_ATRAC_IDS = 6;
static bool atracInited = true;
static Atrac *atracIDs[PSP_NUM_ATRAC_IDS];
static int atracIDTypes[PSP_NUM_ATRAC_IDS];
static u32 atracIDTypes[PSP_NUM_ATRAC_IDS];
void __AtracInit() {
atracInited = true;
@ -1547,7 +1547,7 @@ static u32 sceAtracSetData(int atracID, u32 buffer, u32 bufferSize) {
int ret = atrac->Analyze();
if (ret < 0) {
ERROR_LOG_REPORT(ME, "sceAtracSetData(%i, %08x, %08x): bad data", atracID, buffer, bufferSize);
} else if ((int)atrac->codecType != atracIDTypes[atracID]) {
} else if (atrac->codecType != atracIDTypes[atracID]) {
ERROR_LOG_REPORT(ME, "sceAtracSetData(%i, %08x, %08x): atracID uses different codec type than data", atracID, buffer, bufferSize);
ret = ATRAC_ERROR_WRONG_CODECTYPE;
} else {

View File

@ -91,7 +91,7 @@ unsigned int StereoResampler::MixerFifo::Mix(short* samples, unsigned int numSam
u32 indexW = Common::AtomicLoad(m_indexW);
// We force on the audio resampler if the output sample rate doesn't match the input.
if (!g_Config.bAudioResampler && sample_rate == m_input_sample_rate) {
if (!g_Config.bAudioResampler && sample_rate == (int)m_input_sample_rate) {
for (; currentSample < numSamples * 2 && ((indexW - indexR) & INDEX_MASK) > 2; currentSample += 2) {
u32 indexR2 = indexR + 2; //next sample
s16 l1 = m_buffer[indexR & INDEX_MASK]; //current

View File

@ -208,7 +208,7 @@ int PlayBackgroundAudio() {
double now = time_now();
if (at3Reader) {
const int sz = (now - lastPlaybackTime) * 44100;
if (sz >= 16 && sz < ARRAY_SIZE(buffer)/2) {
if (sz >= 16 && sz < (int)ARRAY_SIZE(buffer) / 2) {
if (at3Reader->Read(buffer, sz))
__PushExternalAudio(buffer, sz);
}