mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Warnings: Fix missing-prototypes warnings
This commit is contained in:
parent
3bf635e004
commit
19ddbe2368
38 changed files with 133 additions and 75 deletions
|
|
@ -25,7 +25,7 @@ namespace juce
|
|||
namespace SampleRateHelpers
|
||||
{
|
||||
|
||||
const auto& getAllSampleRates()
|
||||
static inline const std::vector<double>& getAllSampleRates()
|
||||
{
|
||||
static auto sampleRates = []
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1416,6 +1416,7 @@ private:
|
|||
};
|
||||
|
||||
//==============================================================================
|
||||
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr);
|
||||
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr)
|
||||
{
|
||||
auto thread = std::make_unique<OboeRealtimeThread>();
|
||||
|
|
|
|||
|
|
@ -1273,6 +1273,7 @@ private:
|
|||
};
|
||||
|
||||
//==============================================================================
|
||||
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr);
|
||||
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr)
|
||||
{
|
||||
auto thread = std::make_unique<SLRealtimeThread>();
|
||||
|
|
|
|||
|
|
@ -1287,12 +1287,12 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
AudioIODeviceType* createAudioIODeviceType_ALSA_Soundcards()
|
||||
static inline AudioIODeviceType* createAudioIODeviceType_ALSA_Soundcards()
|
||||
{
|
||||
return new ALSAAudioIODeviceType (true, "ALSA HW");
|
||||
}
|
||||
|
||||
AudioIODeviceType* createAudioIODeviceType_ALSA_PCMDevices()
|
||||
static inline AudioIODeviceType* createAudioIODeviceType_ALSA_PCMDevices()
|
||||
{
|
||||
return new ALSAAudioIODeviceType (false, "ALSA");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ namespace juce
|
|||
//==============================================================================
|
||||
namespace DSoundLogging
|
||||
{
|
||||
String getErrorMessage (HRESULT hr)
|
||||
static String getErrorMessage (HRESULT hr)
|
||||
{
|
||||
const char* result = nullptr;
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wlanguage-extension-token")
|
|||
namespace WasapiClasses
|
||||
{
|
||||
|
||||
void logFailure (HRESULT hr)
|
||||
static void logFailure (HRESULT hr)
|
||||
{
|
||||
ignoreUnused (hr);
|
||||
jassert (hr != (HRESULT) 0x800401f0); // If you hit this, it means you're trying to call from
|
||||
|
|
@ -89,7 +89,7 @@ void logFailure (HRESULT hr)
|
|||
|
||||
#undef check
|
||||
|
||||
bool check (HRESULT hr)
|
||||
static bool check (HRESULT hr)
|
||||
{
|
||||
logFailure (hr);
|
||||
return SUCCEEDED (hr);
|
||||
|
|
@ -361,7 +361,7 @@ namespace juce
|
|||
namespace WasapiClasses
|
||||
{
|
||||
|
||||
String getDeviceID (IMMDevice* device)
|
||||
static String getDeviceID (IMMDevice* device)
|
||||
{
|
||||
String s;
|
||||
WCHAR* deviceId = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue