mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Warnings: Add missing overrides
This commit is contained in:
parent
6c32c4df87
commit
047448fbce
84 changed files with 630 additions and 627 deletions
|
|
@ -979,7 +979,7 @@ public:
|
|||
#endif
|
||||
}
|
||||
|
||||
~ALSAAudioIODeviceType()
|
||||
~ALSAAudioIODeviceType() override
|
||||
{
|
||||
#if ! JUCE_ALSA_LOGGING
|
||||
snd_lib_error_set_handler (nullptr);
|
||||
|
|
@ -989,7 +989,7 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void scanForDevices()
|
||||
void scanForDevices() override
|
||||
{
|
||||
if (hasScanned)
|
||||
return;
|
||||
|
|
@ -1011,14 +1011,14 @@ public:
|
|||
outputNames.appendNumbersToDuplicates (false, true);
|
||||
}
|
||||
|
||||
StringArray getDeviceNames (bool wantInputNames) const
|
||||
StringArray getDeviceNames (bool wantInputNames) const override
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
return wantInputNames ? inputNames : outputNames;
|
||||
}
|
||||
|
||||
int getDefaultDeviceIndex (bool forInput) const
|
||||
int getDefaultDeviceIndex (bool forInput) const override
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
|
|
@ -1026,9 +1026,9 @@ public:
|
|||
return idx >= 0 ? idx : 0;
|
||||
}
|
||||
|
||||
bool hasSeparateInputsAndOutputs() const { return true; }
|
||||
bool hasSeparateInputsAndOutputs() const override { return true; }
|
||||
|
||||
int getIndexOfDevice (AudioIODevice* device, bool asInput) const
|
||||
int getIndexOfDevice (AudioIODevice* device, bool asInput) const override
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
|
|
@ -1040,7 +1040,7 @@ public:
|
|||
}
|
||||
|
||||
AudioIODevice* createDevice (const String& outputDeviceName,
|
||||
const String& inputDeviceName)
|
||||
const String& inputDeviceName) override
|
||||
{
|
||||
jassert (hasScanned); // need to call scanForDevices() before doing this
|
||||
|
||||
|
|
|
|||
|
|
@ -564,13 +564,13 @@ private:
|
|||
{
|
||||
SessionEventCallback (WASAPIDeviceBase& d) : owner (d) {}
|
||||
|
||||
JUCE_COMRESULT OnDisplayNameChanged (LPCWSTR, LPCGUID) { return S_OK; }
|
||||
JUCE_COMRESULT OnIconPathChanged (LPCWSTR, LPCGUID) { return S_OK; }
|
||||
JUCE_COMRESULT OnSimpleVolumeChanged (float, BOOL, LPCGUID) { return S_OK; }
|
||||
JUCE_COMRESULT OnChannelVolumeChanged (DWORD, float*, DWORD, LPCGUID) { return S_OK; }
|
||||
JUCE_COMRESULT OnGroupingParamChanged (LPCGUID, LPCGUID) { return S_OK; }
|
||||
JUCE_COMRESULT OnDisplayNameChanged (LPCWSTR, LPCGUID) override { return S_OK; }
|
||||
JUCE_COMRESULT OnIconPathChanged (LPCWSTR, LPCGUID) override { return S_OK; }
|
||||
JUCE_COMRESULT OnSimpleVolumeChanged (float, BOOL, LPCGUID) override { return S_OK; }
|
||||
JUCE_COMRESULT OnChannelVolumeChanged (DWORD, float*, DWORD, LPCGUID) override { return S_OK; }
|
||||
JUCE_COMRESULT OnGroupingParamChanged (LPCGUID, LPCGUID) override { return S_OK; }
|
||||
|
||||
JUCE_COMRESULT OnStateChanged (AudioSessionState state)
|
||||
JUCE_COMRESULT OnStateChanged (AudioSessionState state) override
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
|
|
@ -588,7 +588,7 @@ private:
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
JUCE_COMRESULT OnSessionDisconnected (AudioSessionDisconnectReason reason)
|
||||
JUCE_COMRESULT OnSessionDisconnected (AudioSessionDisconnectReason reason) override
|
||||
{
|
||||
if (reason == DisconnectReasonFormatChanged)
|
||||
owner.deviceSampleRateChanged();
|
||||
|
|
@ -833,7 +833,7 @@ private:
|
|||
return result;
|
||||
}
|
||||
|
||||
DWORD getStreamFlags()
|
||||
DWORD getStreamFlags() const
|
||||
{
|
||||
DWORD streamFlags = 0x40000; /*AUDCLNT_STREAMFLAGS_EVENTCALLBACK*/
|
||||
|
||||
|
|
@ -1199,8 +1199,8 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
class WASAPIAudioIODevice final : public AudioIODevice,
|
||||
public Thread,
|
||||
private AsyncUpdater
|
||||
public Thread,
|
||||
private AsyncUpdater
|
||||
{
|
||||
public:
|
||||
WASAPIAudioIODevice (const String& deviceName,
|
||||
|
|
@ -1821,11 +1821,11 @@ private:
|
|||
explicit ChangeNotificationClient (WASAPIAudioIODeviceType* d)
|
||||
: ComBaseClassHelper (0), device (d) {}
|
||||
|
||||
JUCE_COMRESULT OnDeviceAdded (LPCWSTR) { return notify(); }
|
||||
JUCE_COMRESULT OnDeviceRemoved (LPCWSTR) { return notify(); }
|
||||
JUCE_COMRESULT OnDeviceStateChanged (LPCWSTR, DWORD) { return notify(); }
|
||||
JUCE_COMRESULT OnDefaultDeviceChanged (EDataFlow, ERole, LPCWSTR) { return notify(); }
|
||||
JUCE_COMRESULT OnPropertyValueChanged (LPCWSTR, const PROPERTYKEY) { return notify(); }
|
||||
JUCE_COMRESULT OnDeviceAdded (LPCWSTR) override { return notify(); }
|
||||
JUCE_COMRESULT OnDeviceRemoved (LPCWSTR) override { return notify(); }
|
||||
JUCE_COMRESULT OnDeviceStateChanged (LPCWSTR, DWORD) override { return notify(); }
|
||||
JUCE_COMRESULT OnDefaultDeviceChanged (EDataFlow, ERole, LPCWSTR) override { return notify(); }
|
||||
JUCE_COMRESULT OnPropertyValueChanged (LPCWSTR, const PROPERTYKEY) override { return notify(); }
|
||||
|
||||
private:
|
||||
WeakReference<WASAPIAudioIODeviceType> device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue