/*
 *      Copyright (C) 2005-2015 Team KODI
 *      http://kodi.tv
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with KODI; see the file COPYING.  If not, see
 *  <http://www.gnu.org/licenses/>.
 *
 */
// AudioDSPSettings.cpp: implementation of the CAudioSettings class.
//
//////////////////////////////////////////////////////////////////////

#include "AudioDSPSettings.h"
#include "cores/AudioEngine/DSPAddons/ActiveAEDSPMode.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CAudioSettings::CAudioSettings()
{
  m_MasterStreamType    = AE_DSP_ASTREAM_AUTO;
  m_MasterStreamTypeSel = AE_DSP_ASTREAM_AUTO;
  m_MasterStreamBase    = AE_DSP_ABASE_STEREO;

  memset(m_MasterModes, AE_DSP_MASTER_MODE_ID_PASSOVER, sizeof(m_MasterModes));
}

bool CAudioSettings::operator!=(const CAudioSettings &right) const
{
  if (m_MasterStreamType      != right.m_MasterStreamType)      return true;
  if (m_MasterStreamTypeSel   != right.m_MasterStreamTypeSel)   return true;
  if (memcmp(m_MasterModes, right.m_MasterModes, sizeof(m_MasterModes))) return true;

  return false;
}
