2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (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. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #include "SC_Errors.h"
28 void SC_ErrorString(SCErr err
, char returnString
[])
31 case kSCErr_None
: sprintf(returnString
, "none"); break;
32 case kSCErr_Failed
: sprintf(returnString
, "failed"); break;
33 case kSCErr_NodeNotFound
: sprintf(returnString
, "Node %i not found", gMissingNodeID
); break;
34 case kSCErr_TargetNodeNotFound
: sprintf(returnString
, "target Node %i not found", gMissingNodeID
); break;
35 case kSCErr_GroupNotFound
: sprintf(returnString
, "Group %i not found", gMissingNodeID
); break;
36 case kSCErr_SynthDefNotFound
: sprintf(returnString
, "SynthDef not found"); break;
37 case kSCErr_NoSuchCommand
: sprintf(returnString
, "no such command"); break;
38 case kSCErr_WrongArgType
: sprintf(returnString
, "wrong argument type"); break;
39 case kSCErr_IndexOutOfRange
: sprintf(returnString
, "index out of range"); break;
40 case kSCErr_AccessDenied
: sprintf(returnString
, "access denied"); break;
41 case kSCErr_NoReplyPort
: sprintf(returnString
, "no reply port"); break;
42 case kSCErr_InvalidControlIndex
: sprintf(returnString
, "invalid control index"); break;
44 case kSCErr_AlreadyLoggedIn
: sprintf(returnString
, "already logged in"); break;
45 case kSCErr_NotLoggedIn
: sprintf(returnString
, "not logged in"); break;
46 case kSCErr_TooManyUsers
: sprintf(returnString
, "too many users"); break;
47 case kSCErr_TooManyNodes
: sprintf(returnString
, "too many nodes"); break;
48 case kSCErr_DuplicateNodeID
: sprintf(returnString
, "duplicate node ID"); break;
49 case kSCErr_ReservedNodeID
: sprintf(returnString
, "negative node IDs are reserved"); break;
50 case kSCErr_OutOfRealTimeMemory
: sprintf(returnString
, "out of real time memory"); break;
52 case kSCErr_UnsupportedHeaderFormat
: sprintf(returnString
, "unsupported header format"); break;
53 case kSCErr_UnsupportedSampleFormat
: sprintf(returnString
, "unsupported sample format"); break;
55 case kSCErr_BufGenNotFound
: sprintf(returnString
, "buf gen routine not found"); break;
57 default : sprintf(returnString
, "unknown error");