/*
    Copyright (C) 2008 Romulo Fernandes Machado (nightz)
    Copyright (C) 2008 Erik Ogenvik <erik@ogenvik.org>

    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 of the License, 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 this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef SOUND_GENERAL_H
#define SOUND_GENERAL_H

#include <string>


namespace Ember {
class SoundGeneral {
public:

	/**
	 * @brief Checks for any errors in the OpenAL context.
	 * If an error has occurred, it's logged and this method returns false.
	 * Make sure to call this after you've interacted with OpenAL, so the internal error state is reset before the next call to OpenAL (otherwise the errors will carry over).
	 * @param description When an error occurs, an entry will be written to the log; and this "description" will be appended, thus helping to identify each entry.
	 * @return False if an error has occurred, true otherwise.
	 */
	static bool checkAlError(const std::string& description = "");
};
}


#endif

