2 Copyright (C) 2003, 2010 - Wolfire Games
4 This file is part of Lugaru.
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef _FMOD_ERRORS_H
23 #define _FMOD_ERRORS_H
25 static char *FMOD_ErrorString(int errcode)
29 case FMOD_ERR_NONE: return "No errors";
30 case FMOD_ERR_BUSY: return "Cannot call this command after FSOUND_Init. Call FSOUND_Close first.";
31 case FMOD_ERR_UNINITIALIZED: return "This command failed because FSOUND_Init was not called";
32 case FMOD_ERR_PLAY: return "Playing the sound failed.";
33 case FMOD_ERR_INIT: return "Error initializing output device.";
34 case FMOD_ERR_ALLOCATED: return "The output device is already in use and cannot be reused.";
35 case FMOD_ERR_OUTPUT_FORMAT: return "Soundcard does not support the features needed for this soundsystem (16bit stereo output)";
36 case FMOD_ERR_COOPERATIVELEVEL: return "Error setting cooperative level for hardware.";
37 case FMOD_ERR_CREATEBUFFER: return "Error creating hardware sound buffer.";
38 case FMOD_ERR_FILE_NOTFOUND: return "File not found";
39 case FMOD_ERR_FILE_FORMAT: return "Unknown file format";
40 case FMOD_ERR_FILE_BAD: return "Error loading file";
41 case FMOD_ERR_MEMORY: return "Not enough memory ";
42 case FMOD_ERR_VERSION: return "The version number of this file format is not supported";
43 case FMOD_ERR_INVALID_PARAM: return "An invalid parameter was passed to this function";
44 case FMOD_ERR_NO_EAX: return "Tried to use an EAX command on a non EAX enabled channel or output.";
45 case FMOD_ERR_CHANNEL_ALLOC: return "Failed to allocate a new channel";
46 case FMOD_ERR_RECORD: return "Recording not supported on this device";
47 case FMOD_ERR_MEDIAPLAYER: return "Required Mediaplayer codec is not installed";
49 default : return "Unknown error";