no more gcc/ppc complaints
This commit is contained in:
parent
7af3fdb99a
commit
d47ad23fe8
@ -293,7 +293,7 @@ CoreAudioPCM::available_sample_rates(uint32_t device_id, std::vector<float>& sam
|
||||
return -1;
|
||||
}
|
||||
|
||||
int numRates = size / sizeof(AudioValueRange);
|
||||
uint32_t numRates = size / sizeof(AudioValueRange);
|
||||
AudioValueRange* supportedRates = new AudioValueRange[numRates];
|
||||
|
||||
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;
|
||||
}
|
||||
#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
|
||||
latencies.push_back(stream_latency);
|
||||
}
|
||||
|
@ -38,5 +38,5 @@ def build(bld):
|
||||
# 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)
|
||||
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']
|
||||
|
Loading…
Reference in New Issue
Block a user