Fixed compile error when compiling without sound support.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2081 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-07-31 00:02:47 +00:00
parent 1b19d4a29f
commit 8ed6201651
2 changed files with 12 additions and 5 deletions

View File

@ -57,7 +57,7 @@ bool SoundNull::load(Serializer& in)
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool SoundNull::save(Serializer& out) bool SoundNull::save(Serializer& out) const
{ {
out.putString("TIASound"); out.putString("TIASound");

View File

@ -136,6 +136,14 @@ class SoundNull : public Sound
void adjustVolume(Int8 direction) { } void adjustVolume(Int8 direction) { }
public: public:
/**
Saves the current state of this device to the given Serializer.
@param out The serializer device to save to.
@return The result of the save. True on success, false on failure.
*/
bool save(Serializer& out) const;
/** /**
Loads the current state of this device from the given Serializer. Loads the current state of this device from the given Serializer.
@ -145,12 +153,11 @@ public:
bool load(Serializer& in); bool load(Serializer& in);
/** /**
Saves the current state of this device to the given Serializer. Get a descriptor for this console class (used in error checking).
@param out The serializer device to save to. @return The name of the object
@return The result of the save. True on success, false on failure.
*/ */
bool save(Serializer& out); string name() const { return "TIASound"; }
}; };
#endif #endif