cog/Frameworks/GME/gme/Hes_Emu.h

43 lines
977 B
C
Raw Normal View History

2007-10-11 23:11:58 +00:00
// TurboGrafx-16/PC Engine HES music file emulator
2013-09-28 03:24:23 +00:00
// Game_Music_Emu $vers
2007-10-11 23:11:58 +00:00
#ifndef HES_EMU_H
#define HES_EMU_H
#include "Classic_Emu.h"
2013-09-28 03:24:23 +00:00
#include "Hes_Core.h"
2007-10-11 23:11:58 +00:00
2013-09-28 03:24:23 +00:00
class Hes_Emu : public Classic_Emu {
2007-10-11 23:11:58 +00:00
public:
2013-09-28 03:24:23 +00:00
static gme_type_t static_type() { return gme_hes_type; }
2007-10-11 23:11:58 +00:00
2013-09-28 03:24:23 +00:00
// HES file header (see Hes_Core.h)
typedef Hes_Core::header_t header_t;
2007-10-11 23:11:58 +00:00
2013-09-28 03:24:23 +00:00
// Header for currently loaded file
header_t const& header() const { return core.header(); }
blargg_err_t hash_( Hash_Function& ) const;
2007-10-11 23:11:58 +00:00
2013-09-28 03:24:23 +00:00
// Implementation
2007-10-11 23:11:58 +00:00
public:
Hes_Emu();
~Hes_Emu();
2013-09-28 03:24:23 +00:00
virtual void unload();
2007-10-11 23:11:58 +00:00
protected:
2013-09-28 03:24:23 +00:00
virtual blargg_err_t track_info_( track_info_t*, int track ) const;
virtual blargg_err_t load_( Data_Reader& );
virtual blargg_err_t start_track_( int );
virtual blargg_err_t run_clocks( blip_time_t&, int );
virtual void set_tempo_( double );
virtual void set_voice( int, Blip_Buffer*, Blip_Buffer*, Blip_Buffer* );
virtual void update_eq( blip_eq_t const& );
2007-10-11 23:11:58 +00:00
private:
2013-09-28 03:24:23 +00:00
Hes_Core core;
2007-10-11 23:11:58 +00:00
};
#endif