mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
This fixes the following warning:
```
<...>/blender/extern/audaspace/plugins/coreaudio/CoreAudioDevice.cpp:160:73: warning: bitwise operation between different enumeration types ('(unnamed enum at <...>/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h:573:1)' and '(unnamed enum at <...>/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h:522:1)') is deprecated [-Wdeprecated-anon-enum-enum-conversion]
160 | stream_basic_description.mFormatFlags |= kAudioFormatFlagsNativeEndian | kLinearPCMFormatFlagIsPacked;
```
This deprecation (and warning) is new in C++20. The issue came from
macOS CoreAudio using an internal macro (CF_ENUM) to define anonymous
enums with an underlying type, with the warning then being cause by both
of these constants being part of different enums.
Fixed by adding an explict cast to the underlying type
(AudioFormatFlags) before applying the bitwise operation.
|
||
|---|---|---|
| .. | ||
| coreaudio | ||
| ffmpeg | ||
| jack | ||
| libsndfile | ||
| openal | ||
| pipewire | ||
| pulseaudio | ||
| sdl | ||
| wasapi | ||