ffAudio / ff_meters

Plug and play component to display LED meters for JUCE audio buffers
BSD 3-Clause "New" or "Revised" License
113 stars 31 forks source link

Does not compile on MSVC #9

Closed tobanteAudio closed 2 years ago

tobanteAudio commented 4 years ago

The pragma does not compile on MSVC:

#if FF_AUDIO_ALLOW_ALLOCATIONS_IN_MEASURE_BLOCK
#warning The use of levels.resize() is not realtime safe. Please call resize from the message thread and set this config setting to 0 via Projucer.
            levels.resize (size_t (numChannels));
#endif
ffAudio commented 4 years ago

Thank you for the heads up. I will change that to use "pragma message" on windows. However, it is strongly advised to switch that config option off, in which case the whole block is ignored anyway. It is just to keep old code working, but that old method was never 100% realtime safe.

ffAudio commented 2 years ago

The whole block is now removed. Thanks for the feedback.