From 8ed6201651abce1d8242b0753360311d36d340f3 Mon Sep 17 00:00:00 2001 From: stephena Date: Sat, 31 Jul 2010 00:02:47 +0000 Subject: [PATCH] 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 --- src/common/SoundNull.cxx | 2 +- src/common/SoundNull.hxx | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/common/SoundNull.cxx b/src/common/SoundNull.cxx index faab463e4..f1fa0a0bd 100644 --- a/src/common/SoundNull.cxx +++ b/src/common/SoundNull.cxx @@ -57,7 +57,7 @@ bool SoundNull::load(Serializer& in) } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool SoundNull::save(Serializer& out) +bool SoundNull::save(Serializer& out) const { out.putString("TIASound"); diff --git a/src/common/SoundNull.hxx b/src/common/SoundNull.hxx index 14ea48e4f..3aed3a2e3 100644 --- a/src/common/SoundNull.hxx +++ b/src/common/SoundNull.hxx @@ -136,6 +136,14 @@ class SoundNull : public Sound void adjustVolume(Int8 direction) { } 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. @@ -145,12 +153,11 @@ public: 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 result of the save. True on success, false on failure. + @return The name of the object */ - bool save(Serializer& out); + string name() const { return "TIASound"; } }; #endif