Changeset 6056 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 12, 2007 10:58:26 PM (17 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/alsaaudio.c
r5077 r6056 179 179 return SND_PCM_FORMAT_U16_LE; 180 180 181 case AUD_FMT_S32: 182 return SND_PCM_FORMAT_S32_LE; 183 184 case AUD_FMT_U32: 185 return SND_PCM_FORMAT_U32_LE; 186 181 187 default: 182 188 dolog ("Internal logic error: Bad audio format %d\n", fmt); … … 219 225 *endianness = 1; 220 226 *fmt = AUD_FMT_U16; 227 break; 228 229 case SND_PCM_FORMAT_S32_LE: 230 *endianness = 0; 231 *fmt = AUD_FMT_S32; 232 break; 233 234 case SND_PCM_FORMAT_U32_LE: 235 *endianness = 0; 236 *fmt = AUD_FMT_U32; 237 break; 238 239 case SND_PCM_FORMAT_S32_BE: 240 *endianness = 1; 241 *fmt = AUD_FMT_S32; 242 break; 243 244 case SND_PCM_FORMAT_U32_BE: 245 *endianness = 1; 246 *fmt = AUD_FMT_U32; 221 247 break; 222 248 -
trunk/src/VBox/Devices/Audio/audio.c
r5754 r6056 68 68 &alsa_audio_driver, 69 69 #endif 70 #ifdef VBOX_WITH_PULSE 71 &pulse_audio_driver, 72 #endif 70 73 #endif 71 74 #ifdef RT_OS_DARWIN … … 258 261 return "U16"; 259 262 263 case AUD_FMT_U32: 264 return "U32"; 265 260 266 case AUD_FMT_S8: 261 267 return "S8"; … … 263 269 case AUD_FMT_S16: 264 270 return "S16"; 271 272 case AUD_FMT_S32: 273 return "S32"; 265 274 } 266 275 … … 280 289 return AUD_FMT_U16; 281 290 } 291 else if (!strcasecmp (s, "u32")) { 292 *defaultp = 0; 293 return AUD_FMT_U32; 294 } 282 295 else if (!strcasecmp (s, "s8")) { 283 296 *defaultp = 0; … … 287 300 *defaultp = 0; 288 301 return AUD_FMT_S16; 302 } 303 else if (!strcasecmp (s, "s32")) { 304 *defaultp = 0; 305 return AUD_FMT_S32; 289 306 } 290 307 else { … … 498 515 case AUD_FMT_S16: 499 516 case AUD_FMT_U16: 517 case AUD_FMT_S32: 518 case AUD_FMT_U32: 500 519 break; 501 520 default: … … 523 542 bits = 16; 524 543 break; 544 545 case AUD_FMT_S32: 546 sign = 1; 547 case AUD_FMT_U32: 548 bits = 32; 549 break; 525 550 } 526 551 return info->freq == as->freq … … 545 570 case AUD_FMT_U16: 546 571 bits = 16; 572 break; 573 574 case AUD_FMT_S32: 575 sign = 1; 576 case AUD_FMT_U32: 577 bits = 32; 547 578 break; 548 579 } -
trunk/src/VBox/Devices/Audio/audio.h
r5076 r6056 39 39 AUD_FMT_S8, 40 40 AUD_FMT_U16, 41 AUD_FMT_S16 41 AUD_FMT_S16, 42 AUD_FMT_U32, 43 AUD_FMT_S32 42 44 } audfmt_e; 43 45 -
trunk/src/VBox/Devices/Audio/audio_int.h
r5754 r6056 213 213 extern struct audio_driver fmod_audio_driver; 214 214 extern struct audio_driver alsa_audio_driver; 215 extern struct audio_driver pulse_audio_driver; 215 216 extern struct audio_driver coreaudio_audio_driver; 216 217 extern struct audio_driver dsound_audio_driver;
Note:
See TracChangeset
for help on using the changeset viewer.