libsidplayfp  0.3.5
nullsid.h
1 /***************************************************************************
2  nullsid.h - Null SID Emulation
3  -------------------
4  begin : Thurs Sep 20 2001
5  copyright : (C) 2001 by Simon White
6  email : s_a_white@email.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef _nullsid_h_
19 #define _nullsid_h_
20 
21 #include "sidbuilder.h"
22 
23 class NullSID: public sidemu
24 {
25 public:
26  NullSID () : sidemu (NULL) { m_buffer = NULL; }
27 
28  // Standard component functions
29  void reset () { sidemu::reset (); }
30  void reset (uint8_t) { ; }
31  uint8_t read (uint_least8_t) { return 0; }
32  void write (uint_least8_t, uint8_t) { ; }
33  const char *credits (void) { return ""; }
34  const char *error (void) { return ""; }
35 
36  // Standard SID functions
37  void clock() { return; }
38  void voice (uint_least8_t, bool) { ; }
39 };
40 
41 #endif // _nullsid_h_