Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -26,7 +26,7 @@ static MIDI *_midi = nullptr;
|
||||
*/
|
||||
extern int _allegro_instance_count;
|
||||
|
||||
const char *MusicDriver_Allegro::Start(const StringList ¶m)
|
||||
const char *MusicDriver_Allegro::Start(const StringList &)
|
||||
{
|
||||
if (_allegro_instance_count == 0 && install_allegro(SYSTEM_AUTODETECT, &errno, nullptr)) {
|
||||
Debug(driver, 0, "allegro: install_allegro failed '{}'", allegro_error);
|
||||
|
||||
@@ -79,7 +79,7 @@ static void DoSetVolume()
|
||||
/**
|
||||
* Initialized the MIDI player, including QuickTime initialization.
|
||||
*/
|
||||
const char *MusicDriver_Cocoa::Start(const StringList &parm)
|
||||
const char *MusicDriver_Cocoa::Start(const StringList &)
|
||||
{
|
||||
if (NewMusicPlayer(&_player) != noErr) return "failed to create music player";
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ bool MusicDriver_ExtMidi::IsSongPlaying()
|
||||
return this->pid != -1;
|
||||
}
|
||||
|
||||
void MusicDriver_ExtMidi::SetVolume(byte vol)
|
||||
void MusicDriver_ExtMidi::SetVolume(byte)
|
||||
{
|
||||
Debug(driver, 1, "extmidi: set volume not implemented");
|
||||
}
|
||||
|
||||
@@ -15,17 +15,17 @@
|
||||
/** The music player that does nothing. */
|
||||
class MusicDriver_Null : public MusicDriver {
|
||||
public:
|
||||
const char *Start(const StringList ¶m) override { return nullptr; }
|
||||
const char *Start(const StringList &) override { return nullptr; }
|
||||
|
||||
void Stop() override { }
|
||||
|
||||
void PlaySong(const MusicSongInfo &song) override { }
|
||||
void PlaySong(const MusicSongInfo &) override { }
|
||||
|
||||
void StopSong() override { }
|
||||
|
||||
bool IsSongPlaying() override { return true; }
|
||||
|
||||
void SetVolume(byte vol) override { }
|
||||
void SetVolume(byte) override { }
|
||||
const char *GetName() const override { return "null"; }
|
||||
};
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ static byte ScaleVolume(byte original, byte scale)
|
||||
}
|
||||
|
||||
|
||||
void CALLBACK MidiOutProc(HMIDIOUT hmo, UINT wMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
|
||||
void CALLBACK MidiOutProc(HMIDIOUT hmo, UINT wMsg, DWORD_PTR, DWORD_PTR dwParam1, DWORD_PTR)
|
||||
{
|
||||
if (wMsg == MOM_DONE) {
|
||||
MIDIHDR *hdr = (LPMIDIHDR)dwParam1;
|
||||
@@ -108,7 +108,7 @@ static void TransmitStandardSysex(MidiSysexMessage msg)
|
||||
* Realtime MIDI playback service routine.
|
||||
* This is called by the multimedia timer.
|
||||
*/
|
||||
void CALLBACK TimerCallback(UINT uTimerID, UINT, DWORD_PTR dwUser, DWORD_PTR, DWORD_PTR)
|
||||
void CALLBACK TimerCallback(UINT uTimerID, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR)
|
||||
{
|
||||
/* Ensure only one timer callback is running at once, and prevent races on status flags */
|
||||
std::unique_lock<std::mutex> mutex_lock(_midi.lock, std::defer_lock);
|
||||
|
||||
Reference in New Issue
Block a user