dsoundaudio.c (3c8de96c074c035cb9f3e021769e4c8872d81268) | dsoundaudio.c (c60840c758cea0cae729d41b0808a4abb7e1dff6) |
---|---|
1/* 2 * QEMU DirectSound audio driver 3 * 4 * Copyright (c) 2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 75 unchanged lines hidden (view full) --- 84#endif 85#ifdef DSERR_ACCESSDENIED 86 case DSERR_ACCESSDENIED: 87 str = "The request failed because access was denied"; 88 break; 89#endif 90#ifdef DSERR_ALLOCATED 91 case DSERR_ALLOCATED: | 1/* 2 * QEMU DirectSound audio driver 3 * 4 * Copyright (c) 2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 75 unchanged lines hidden (view full) --- 84#endif 85#ifdef DSERR_ACCESSDENIED 86 case DSERR_ACCESSDENIED: 87 str = "The request failed because access was denied"; 88 break; 89#endif 90#ifdef DSERR_ALLOCATED 91 case DSERR_ALLOCATED: |
92 str = "The request failed because resources, such as a priority level, were already in use by another caller"; | 92 str = "The request failed because resources, " 93 "such as a priority level, were already in use " 94 "by another caller"; |
93 break; 94#endif 95#ifdef DSERR_ALREADYINITIALIZED 96 case DSERR_ALREADYINITIALIZED: 97 str = "The object is already initialized"; 98 break; 99#endif 100#ifdef DSERR_BADFORMAT 101 case DSERR_BADFORMAT: 102 str = "The specified wave format is not supported"; 103 break; 104#endif 105#ifdef DSERR_BADSENDBUFFERGUID 106 case DSERR_BADSENDBUFFERGUID: | 95 break; 96#endif 97#ifdef DSERR_ALREADYINITIALIZED 98 case DSERR_ALREADYINITIALIZED: 99 str = "The object is already initialized"; 100 break; 101#endif 102#ifdef DSERR_BADFORMAT 103 case DSERR_BADFORMAT: 104 str = "The specified wave format is not supported"; 105 break; 106#endif 107#ifdef DSERR_BADSENDBUFFERGUID 108 case DSERR_BADSENDBUFFERGUID: |
107 str = "The GUID specified in an audiopath file does not match a valid mix-in buffer"; | 109 str = "The GUID specified in an audiopath file " 110 "does not match a valid mix-in buffer"; |
108 break; 109#endif 110#ifdef DSERR_BUFFERLOST 111 case DSERR_BUFFERLOST: 112 str = "The buffer memory has been lost and must be restored"; 113 break; 114#endif 115#ifdef DSERR_BUFFERTOOSMALL 116 case DSERR_BUFFERTOOSMALL: | 111 break; 112#endif 113#ifdef DSERR_BUFFERLOST 114 case DSERR_BUFFERLOST: 115 str = "The buffer memory has been lost and must be restored"; 116 break; 117#endif 118#ifdef DSERR_BUFFERTOOSMALL 119 case DSERR_BUFFERTOOSMALL: |
117 str = "The buffer size is not great enough to enable effects processing"; | 120 str = "The buffer size is not great enough to " 121 "enable effects processing"; |
118 break; 119#endif 120#ifdef DSERR_CONTROLUNAVAIL 121 case DSERR_CONTROLUNAVAIL: | 122 break; 123#endif 124#ifdef DSERR_CONTROLUNAVAIL 125 case DSERR_CONTROLUNAVAIL: |
122 str = "The buffer control (volume, pan, and so on) requested by the caller is not available. Controls must be specified when the buffer is created, using the dwFlags member of DSBUFFERDESC"; | 126 str = "The buffer control (volume, pan, and so on) " 127 "requested by the caller is not available. " 128 "Controls must be specified when the buffer is created, " 129 "using the dwFlags member of DSBUFFERDESC"; |
123 break; 124#endif 125#ifdef DSERR_DS8_REQUIRED 126 case DSERR_DS8_REQUIRED: | 130 break; 131#endif 132#ifdef DSERR_DS8_REQUIRED 133 case DSERR_DS8_REQUIRED: |
127 str = "A DirectSound object of class CLSID_DirectSound8 or later is required for the requested functionality. For more information, see IDirectSound8 Interface"; | 134 str = "A DirectSound object of class CLSID_DirectSound8 or later " 135 "is required for the requested functionality. " 136 "For more information, see IDirectSound8 Interface"; |
128 break; 129#endif 130#ifdef DSERR_FXUNAVAILABLE 131 case DSERR_FXUNAVAILABLE: | 137 break; 138#endif 139#ifdef DSERR_FXUNAVAILABLE 140 case DSERR_FXUNAVAILABLE: |
132 str = "The effects requested could not be found on the system, or they are in the wrong order or in the wrong location; for example, an effect expected in hardware was found in software"; | 141 str = "The effects requested could not be found on the system, " 142 "or they are in the wrong order or in the wrong location; " 143 "for example, an effect expected in hardware " 144 "was found in software"; |
133 break; 134#endif 135#ifdef DSERR_GENERIC 136 case DSERR_GENERIC: 137 str = "An undetermined error occurred inside the DirectSound subsystem"; 138 break; 139#endif 140#ifdef DSERR_INVALIDCALL --- 8 unchanged lines hidden (view full) --- 149#endif 150#ifdef DSERR_NOAGGREGATION 151 case DSERR_NOAGGREGATION: 152 str = "The object does not support aggregation"; 153 break; 154#endif 155#ifdef DSERR_NODRIVER 156 case DSERR_NODRIVER: | 145 break; 146#endif 147#ifdef DSERR_GENERIC 148 case DSERR_GENERIC: 149 str = "An undetermined error occurred inside the DirectSound subsystem"; 150 break; 151#endif 152#ifdef DSERR_INVALIDCALL --- 8 unchanged lines hidden (view full) --- 161#endif 162#ifdef DSERR_NOAGGREGATION 163 case DSERR_NOAGGREGATION: 164 str = "The object does not support aggregation"; 165 break; 166#endif 167#ifdef DSERR_NODRIVER 168 case DSERR_NODRIVER: |
157 str = "No sound driver is available for use, or the given GUID is not a valid DirectSound device ID"; | 169 str = "No sound driver is available for use, " 170 "or the given GUID is not a valid DirectSound device ID"; |
158 break; 159#endif 160#ifdef DSERR_NOINTERFACE 161 case DSERR_NOINTERFACE: 162 str = "The requested COM interface is not available"; 163 break; 164#endif 165#ifdef DSERR_OBJECTNOTFOUND 166 case DSERR_OBJECTNOTFOUND: 167 str = "The requested object was not found"; 168 break; 169#endif 170#ifdef DSERR_OTHERAPPHASPRIO 171 case DSERR_OTHERAPPHASPRIO: | 171 break; 172#endif 173#ifdef DSERR_NOINTERFACE 174 case DSERR_NOINTERFACE: 175 str = "The requested COM interface is not available"; 176 break; 177#endif 178#ifdef DSERR_OBJECTNOTFOUND 179 case DSERR_OBJECTNOTFOUND: 180 str = "The requested object was not found"; 181 break; 182#endif 183#ifdef DSERR_OTHERAPPHASPRIO 184 case DSERR_OTHERAPPHASPRIO: |
172 str = "Another application has a higher priority level, preventing this call from succeeding"; | 185 str = "Another application has a higher priority level, " 186 "preventing this call from succeeding"; |
173 break; 174#endif 175#ifdef DSERR_OUTOFMEMORY 176 case DSERR_OUTOFMEMORY: | 187 break; 188#endif 189#ifdef DSERR_OUTOFMEMORY 190 case DSERR_OUTOFMEMORY: |
177 str = "The DirectSound subsystem could not allocate sufficient memory to complete the caller's request"; | 191 str = "The DirectSound subsystem could not allocate " 192 "sufficient memory to complete the caller's request"; |
178 break; 179#endif 180#ifdef DSERR_PRIOLEVELNEEDED 181 case DSERR_PRIOLEVELNEEDED: 182 str = "A cooperative level of DSSCL_PRIORITY or higher is required"; 183 break; 184#endif 185#ifdef DSERR_SENDLOOP 186 case DSERR_SENDLOOP: 187 str = "A circular loop of send effects was detected"; 188 break; 189#endif 190#ifdef DSERR_UNINITIALIZED 191 case DSERR_UNINITIALIZED: | 193 break; 194#endif 195#ifdef DSERR_PRIOLEVELNEEDED 196 case DSERR_PRIOLEVELNEEDED: 197 str = "A cooperative level of DSSCL_PRIORITY or higher is required"; 198 break; 199#endif 200#ifdef DSERR_SENDLOOP 201 case DSERR_SENDLOOP: 202 str = "A circular loop of send effects was detected"; 203 break; 204#endif 205#ifdef DSERR_UNINITIALIZED 206 case DSERR_UNINITIALIZED: |
192 str = "The Initialize method has not been called or has not been called successfully before other methods were called"; | 207 str = "The Initialize method has not been called " 208 "or has not been called successfully " 209 "before other methods were called"; |
193 break; 194#endif 195#ifdef DSERR_UNSUPPORTED 196 case DSERR_UNSUPPORTED: 197 str = "The function called is not supported at this time"; 198 break; 199#endif 200 default: --- 515 unchanged lines hidden --- | 210 break; 211#endif 212#ifdef DSERR_UNSUPPORTED 213 case DSERR_UNSUPPORTED: 214 str = "The function called is not supported at this time"; 215 break; 216#endif 217 default: --- 515 unchanged lines hidden --- |