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

Formatting: Use nested namespace definitions

This commit is contained in:
Anthony Nicholls 2023-10-06 08:59:50 +01:00
parent 90c458d92e
commit 158220ddfa
142 changed files with 394 additions and 796 deletions

View file

@ -20,9 +20,7 @@
==============================================================================
*/
namespace juce
{
namespace SampleRateHelpers
namespace juce::SampleRateHelpers
{
static inline const std::vector<double>& getAllSampleRates()
@ -44,5 +42,4 @@ static inline const std::vector<double>& getAllSampleRates()
return sampleRates;
}
} // namespace SampleRateHelpers
} // namespace juce
} // namespace juce::SampleRateHelpers

View file

@ -22,9 +22,7 @@
#ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{
/**
@ -138,7 +136,6 @@ struct BytestreamToUMPHandler : public BytestreamInputHandler
BytestreamToUMPDispatcher dispatcher;
};
}
}
} // juce::universal_midi_packets
#endif

View file

@ -22,9 +22,7 @@
#ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{
/**
@ -149,7 +147,7 @@ struct U32ToUMPHandler : public U32InputHandler
GenericUMPConverter converter;
};
}
}
} // namespace juce::universal_midi_packets
#endif

View file

@ -20,9 +20,6 @@
==============================================================================
*/
namespace juce
{
//==============================================================================
/**
Some shared helpers methods for using the high-performance audio paths on
@ -30,7 +27,7 @@ namespace juce
@tags{Audio}
*/
namespace AndroidHighPerformanceAudioHelpers
namespace juce::AndroidHighPerformanceAudioHelpers
{
//==============================================================================
static double getNativeSampleRate()
@ -126,6 +123,5 @@ namespace AndroidHighPerformanceAudioHelpers
auto defaultBuffersToEnqueue = buffersToQueueForBufferDuration (nativeBufferSize, defaultBufferLength, currentSampleRate);
return defaultBuffersToEnqueue * nativeBufferSize;
}
}
} // namespace juce
} // namespace juce::AndroidHighPerformanceAudioHelpers

View file

@ -2024,7 +2024,7 @@ struct MMDeviceMasterVolume
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MMDeviceMasterVolume)
};
}
} // namespace WasapiClasses
//==============================================================================
#define JUCE_SYSTEMAUDIOVOL_IMPLEMENTED 1