MusicKit
0.0.0
|
00001 /* 00002 $Id$ 00003 00004 Description: 00005 Error codes. 00006 00007 Substantially based on Sound Kit, Release 2.0, Copyright (c) 1988, 1989, 1990, NeXT, Inc. All rights reserved. 00008 Copyright (c) 1999 Apple Computer, Inc. All rights reserved. 00009 Additions Copyright (c) 2001, The MusicKit Project. All rights reserved. 00010 00011 Legal Statement Covering Additions by The MusicKit Project: 00012 00013 Permission is granted to use and modify this code for commercial and 00014 non-commercial purposes so long as the author attribution and copyright 00015 messages remain intact and accompany all relevant code. 00016 00017 */ 00018 /* 00019 * 00020 * @APPLE_LICENSE_HEADER_START@ 00021 * 00022 * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights 00023 * Reserved. This file contains Original Code and/or Modifications of 00024 * Original Code as defined in and that are subject to the Apple Public 00025 * Source License Version 1.0 (the 'License'). You may not use this file 00026 * except in compliance with the License. Please obtain a copy of the 00027 * License at http://www.apple.com/publicsource and read it before using 00028 * this file. 00029 * 00030 * The Original Code and all software distributed under the License are 00031 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 00032 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 00033 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 00034 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 00035 * License for the specific language governing rights and limitations 00036 * under the License." 00037 * 00038 * @APPLE_LICENSE_HEADER_END@ 00039 */ 00040 00041 #ifndef __SNDKIT_SNDERROR_H__ 00042 #define __SNDKIT_SNDERROR_H__ 00043 00044 #if !defined(SND_ERR_NOT_SOUND) 00045 00087 typedef enum { 00088 SND_ERR_NONE = 0, 00089 SND_ERR_NOT_SOUND = 1, 00090 SND_ERR_BAD_FORMAT = 2, 00091 SND_ERR_BAD_RATE = 3, 00092 SND_ERR_BAD_CHANNEL = 4, 00093 SND_ERR_BAD_SIZE = 5, 00094 SND_ERR_BAD_FILENAME = 6, 00095 SND_ERR_CANNOT_OPEN = 7, 00096 SND_ERR_CANNOT_WRITE = 8, 00097 SND_ERR_CANNOT_READ = 9, 00098 SND_ERR_CANNOT_ALLOC = 10, 00099 SND_ERR_CANNOT_FREE = 11, 00100 SND_ERR_CANNOT_COPY = 12, 00101 SND_ERR_CANNOT_RESERVE = 13, 00102 SND_ERR_NOT_RESERVED = 14, 00103 SND_ERR_CANNOT_RECORD = 15, 00104 SND_ERR_ALREADY_RECORDING = 16, 00105 SND_ERR_NOT_RECORDING = 17, 00106 SND_ERR_CANNOT_PLAY = 18, 00107 SND_ERR_ALREADY_PLAYING = 19, 00108 SND_ERR_NOT_PLAYING = 20, 00109 SND_ERR_NOT_IMPLEMENTED = 21, 00110 SND_ERR_CANNOT_FIND = 22, 00111 SND_ERR_CANNOT_EDIT = 23, 00112 SND_ERR_BAD_SPACE = 24, 00113 SND_ERR_KERNEL = 25, 00114 SND_ERR_BAD_CONFIGURATION = 26, 00115 SND_ERR_CANNOT_CONFIGURE = 27, 00116 SND_ERR_UNDERRUN = 28, 00117 SND_ERR_ABORTED = 29, 00118 SND_ERR_BAD_TAG = 30, 00119 SND_ERR_CANNOT_ACCESS = 31, 00120 SND_ERR_TIMEOUT = 32, 00121 SND_ERR_BUSY = 33, 00122 SND_ERR_CANNOT_ABORT = 34, 00123 SND_ERR_INFO_TOO_BIG = 35, 00124 SND_ERR_BAD_STARTTIME = 36, 00125 SND_ERR_BAD_DURATION = 37, 00126 SND_ERR_UNKNOWN = 32767 00127 } SndError; 00128 #endif 00129 00136 NSString *SndSoundError(int err); 00137 00138 #endif