Changeset 3670 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jul 17, 2007 9:19:36 AM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audio.c
r3666 r3670 75 75 &dsound_audio_driver, 76 76 #endif 77 #ifdef __L4ENV__77 #ifdef RT_OS_L4 78 78 &oss_audio_driver, 79 79 #endif -
trunk/src/VBox/Devices/Audio/ossaudio.c
r3539 r3670 45 45 int nfrags; 46 46 int fragsize; 47 #ifndef __L4ENV__47 #ifndef RT_OS_L4 48 48 int mmapped; 49 49 #endif … … 61 61 62 62 static struct { 63 #ifndef __L4ENV__63 #ifndef RT_OS_L4 64 64 int try_mmap; 65 65 #endif … … 70 70 int debug; 71 71 } conf = { 72 #ifndef __L4ENV__72 #ifndef RT_OS_L4 73 73 INIT_FIELD (try_mmap =) 0, 74 74 #endif … … 341 341 st_sample_t *src; 342 342 struct audio_buf_info abinfo; 343 #ifndef __L4ENV__343 #ifndef RT_OS_L4 344 344 struct count_info cntinfo; 345 345 #endif … … 353 353 bufsize = hw->samples << hw->info.shift; 354 354 355 #ifndef __L4ENV__355 #ifndef RT_OS_L4 356 356 if (oss->mmapped) { 357 357 int bytes; … … 408 408 return 0; 409 409 } 410 #ifndef __L4ENV__410 #ifndef RT_OS_L4 411 411 } 412 412 #endif … … 422 422 423 423 hw->clip (dst, src, convert_samples); 424 #ifdef __L4ENV__424 #ifdef RT_OS_L4 425 425 { 426 426 #else … … 466 466 } 467 467 468 #ifndef __L4ENV__468 #ifndef RT_OS_L4 469 469 if (oss->mmapped) { 470 470 oss->old_optr = cntinfo.ptr; … … 478 478 static void oss_fini_out (HWVoiceOut *hw) 479 479 { 480 #ifndef __L4ENV__480 #ifndef RT_OS_L4 481 481 int err; 482 482 #endif … … 490 490 491 491 if (oss->pcm_buf) { 492 #ifdef __L4ENV__492 #ifdef RT_OS_L4 493 493 qemu_free (oss->pcm_buf); 494 494 #else … … 555 555 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift; 556 556 557 #ifndef __L4ENV__557 #ifndef RT_OS_L4 558 558 oss->mmapped = 0; 559 559 if (conf.try_mmap) { … … 599 599 #endif 600 600 601 #ifndef __L4ENV__601 #ifndef RT_OS_L4 602 602 if (!oss->mmapped) { 603 603 #endif … … 619 619 return -1; 620 620 } 621 #ifndef __L4ENV__621 #ifndef RT_OS_L4 622 622 } 623 623 #endif … … 632 632 OSSVoiceOut *oss = (OSSVoiceOut *) hw; 633 633 634 #ifdef __L4ENV__634 #ifdef RT_OS_L4 635 635 return 0; 636 636 #else … … 847 847 {"NFRAGS", AUD_OPT_INT, &conf.nfrags, 848 848 "Number of fragments", NULL, 0}, 849 #ifndef __L4ENV__849 #ifndef RT_OS_L4 850 850 {"MMAP", AUD_OPT_BOOL, &conf.try_mmap, 851 851 "Try using memory mapped access", NULL, 0},
Note:
See TracChangeset
for help on using the changeset viewer.