1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix some compiler warnings

This commit is contained in:
Tom Poole 2023-08-18 15:14:51 +01:00
parent 0f307122d9
commit 82f1fd57a4
23 changed files with 88 additions and 101 deletions

View file

@ -660,7 +660,7 @@ struct iOSAudioIODevice::Pimpl : public AsyncUpdater
result.setIsRecording (hostIsRecording);
result.setIsLooping (hostIsCycling);
result.setLoopPoints (LoopPoints { hostCycleStartBeat, hostCycleEndBeat });
result.setTimeInSeconds (*result.getTimeInSamples() / impl.sampleRate);
result.setTimeInSeconds ((double) *result.getTimeInSamples() / impl.sampleRate);
Float64 hostBeat = 0;
Float64 hostTempo = 0;
@ -707,7 +707,7 @@ struct iOSAudioIODevice::Pimpl : public AsyncUpdater
{
if (interAppAudioConnected)
{
if (UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, size))
if (UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, (float) size))
return juce_createImageFromUIImage (hostUIImage);
}
}