From 4e106a76e834f701858328af3dade2b388669b84 Mon Sep 17 00:00:00 2001 From: Anthony Nicholls Date: Thu, 13 Jun 2024 13:55:33 +0100 Subject: [PATCH] AudioUnit (host): Prevent a warning from using bitwise operations with different enum types --- .../format_types/juce_AudioUnitPluginFormat.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index db22b68675..97b43defda 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1098,7 +1098,7 @@ public: AudioStreamBasicDescription newStream{}; newStream.mSampleRate = *sampleRate; newStream.mFormatID = kAudioFormatLinearPCM; - newStream.mFormatFlags = kAudioFormatFlagsNativeFloatPacked | kAudioFormatFlagIsNonInterleaved | kAudioFormatFlagsNativeEndian; + newStream.mFormatFlags = (int) kAudioFormatFlagsNativeFloatPacked | (int) kAudioFormatFlagIsNonInterleaved | (int) kAudioFormatFlagsNativeEndian; newStream.mFramesPerPacket = 1; newStream.mBytesPerPacket = 4; newStream.mBytesPerFrame = 4;