File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/music/allegro_m.h
Show inline comments
 
@@ -14,24 +14,24 @@
 

	
 
#include "music_driver.hpp"
 

	
 
/** Allegro's music player. */
 
class MusicDriver_Allegro : public MusicDriver {
 
public:
 
	/* virtual */ const char *Start(const char * const *param);
 
	const char *Start(const char * const *param) override;
 

	
 
	/* virtual */ void Stop();
 
	void Stop() override;
 

	
 
	/* virtual */ void PlaySong(const MusicSongInfo &song);
 
	void PlaySong(const MusicSongInfo &song) override;
 

	
 
	/* virtual */ void StopSong();
 
	void StopSong() override;
 

	
 
	/* virtual */ bool IsSongPlaying();
 
	bool IsSongPlaying() override;
 

	
 
	/* virtual */ void SetVolume(byte vol);
 
	/* virtual */ const char *GetName() const { return "allegro"; }
 
	void SetVolume(byte vol) override;
 
	const char *GetName() const override { return "allegro"; }
 
};
 

	
 
/** Factory for allegro's music player. */
 
class FMusicDriver_Allegro : public DriverFactoryBase {
 
public:
 
#if !defined(WITH_SDL) && defined(WITH_ALLEGRO)
 
@@ -40,10 +40,10 @@ public:
 
	 * over extmidi because with extmidi we get crashes. */
 
	static const int PRIORITY = 9;
 
#else
 
	static const int PRIORITY = 2;
 
#endif
 
	FMusicDriver_Allegro() : DriverFactoryBase(Driver::DT_MUSIC, PRIORITY, "allegro", "Allegro MIDI Driver") {}
 
	/* virtual */ Driver *CreateInstance() const { return new MusicDriver_Allegro(); }
 
	Driver *CreateInstance() const override { return new MusicDriver_Allegro(); }
 
};
 

	
 
#endif /* MUSIC_ALLEGRO_H */