#include "Serializer.hxx"
#include "Deserializer.hxx"
#include "bspf.hxx"
#include "OSystem.hxx"
#include "Settings.hxx"
#include "SoundNull.hxx"
SoundNull::SoundNull(OSystem* osystem)
: Sound(osystem)
{
if(myOSystem->settings().getBool("showinfo"))
std::cerr << "Sound disabled." << std::endl << std::endl;
}
SoundNull::~SoundNull()
{
}
bool SoundNull::load(Deserializer& in)
{
std::string soundDevice = "TIASound";
if(in.getString() != soundDevice)
return false;
uInt8 reg;
reg = (uInt8) in.getInt();
reg = (uInt8) in.getInt();
reg = (uInt8) in.getInt();
reg = (uInt8) in.getInt();
reg = (uInt8) in.getInt();
reg = (uInt8) in.getInt();
in.getInt();
return true;
}
bool SoundNull::save(Serializer& out)
{
out.putString("TIASound");
uInt8 reg = 0;
out.putInt(reg);
out.putInt(reg);
out.putInt(reg);
out.putInt(reg);
out.putInt(reg);
out.putInt(reg);
out.putInt(0);
return true;
}