no more gcc/ppc complaints

This commit is contained in:
Robin Gareus 2015-03-07 16:10:45 +01:00
parent 7af3fdb99a
commit d47ad23fe8
2 changed files with 3 additions and 3 deletions

View file

@ -293,7 +293,7 @@ CoreAudioPCM::available_sample_rates(uint32_t device_id, std::vector<float>& sam
return -1; return -1;
} }
int numRates = size / sizeof(AudioValueRange); uint32_t numRates = size / sizeof(AudioValueRange);
AudioValueRange* supportedRates = new AudioValueRange[numRates]; AudioValueRange* supportedRates = new AudioValueRange[numRates];
err = GetPropertyWrapper (_device_ids[device_id], 0, false, kAudioDevicePropertyAvailableNominalSampleRates, &size, supportedRates); err = GetPropertyWrapper (_device_ids[device_id], 0, false, kAudioDevicePropertyAvailableNominalSampleRates, &size, supportedRates);
@ -431,7 +431,7 @@ CoreAudioPCM::get_stream_latencies(uint32_t device_id, bool input, std::vector<u
return; return;
} }
#ifndef NDEBUG #ifndef NDEBUG
printf(" ^ Stream %d latency: %d\n", i, stream_latency); printf(" ^ Stream %u latency: %u\n", (unsigned int)i, (unsigned int)stream_latency);
#endif #endif
latencies.push_back(stream_latency); latencies.push_back(stream_latency);
} }

View file

@ -38,5 +38,5 @@ def build(bld):
# use new coreaudio API (the old one was deprecated in 10.6, yet still works) # use new coreaudio API (the old one was deprecated in 10.6, yet still works)
# only use with OSX intel 10.6 or later, but for all OSX/PPC (<= 10.6) # only use with OSX intel 10.6 or later, but for all OSX/PPC (<= 10.6)
if not bld.env['build_target'] in ['panther', 'tiger', 'leopard']: if not bld.env['build_target'] in ['panther', 'tiger', 'leopard']:
if not (bld.env['build_target'] == 'snow leopard' and conf.env['build_arch'] == "ppc"): if not (bld.env['build_target'] == 'snowleopard' and bld.env['build_arch'] == "ppc"):
obj.defines += ['COREAUDIO_108'] obj.defines += ['COREAUDIO_108']