VirtualBox

Changeset 3670 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jul 17, 2007 9:19:36 AM (18 years ago)
Author:
vboxsync
Message:

RT_OS_L4

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio.c

    r3666 r3670  
    7575    &dsound_audio_driver,
    7676#endif
    77 #ifdef __L4ENV__
     77#ifdef RT_OS_L4
    7878    &oss_audio_driver,
    7979#endif
  • trunk/src/VBox/Devices/Audio/ossaudio.c

    r3539 r3670  
    4545    int nfrags;
    4646    int fragsize;
    47 #ifndef __L4ENV__
     47#ifndef RT_OS_L4
    4848    int mmapped;
    4949#endif
     
    6161
    6262static struct {
    63 #ifndef __L4ENV__
     63#ifndef RT_OS_L4
    6464    int try_mmap;
    6565#endif
     
    7070    int debug;
    7171} conf = {
    72 #ifndef __L4ENV__
     72#ifndef RT_OS_L4
    7373    INIT_FIELD (try_mmap    =) 0,
    7474#endif
     
    341341    st_sample_t *src;
    342342    struct audio_buf_info abinfo;
    343 #ifndef __L4ENV__
     343#ifndef RT_OS_L4
    344344    struct count_info cntinfo;
    345345#endif
     
    353353    bufsize = hw->samples << hw->info.shift;
    354354
    355 #ifndef __L4ENV__
     355#ifndef RT_OS_L4
    356356    if (oss->mmapped) {
    357357        int bytes;
     
    408408            return 0;
    409409        }
    410 #ifndef __L4ENV__
     410#ifndef RT_OS_L4
    411411    }
    412412#endif
     
    422422
    423423        hw->clip (dst, src, convert_samples);
    424 #ifdef __L4ENV__
     424#ifdef RT_OS_L4
    425425        {
    426426#else
     
    466466    }
    467467
    468 #ifndef __L4ENV__
     468#ifndef RT_OS_L4
    469469    if (oss->mmapped) {
    470470        oss->old_optr = cntinfo.ptr;
     
    478478static void oss_fini_out (HWVoiceOut *hw)
    479479{
    480 #ifndef __L4ENV__
     480#ifndef RT_OS_L4
    481481    int err;
    482482#endif
     
    490490
    491491    if (oss->pcm_buf) {
    492 #ifdef __L4ENV__
     492#ifdef RT_OS_L4
    493493        qemu_free (oss->pcm_buf);
    494494#else
     
    555555    hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
    556556
    557 #ifndef __L4ENV__
     557#ifndef RT_OS_L4
    558558    oss->mmapped = 0;
    559559    if (conf.try_mmap) {
     
    599599#endif
    600600
    601 #ifndef __L4ENV__
     601#ifndef RT_OS_L4
    602602    if (!oss->mmapped) {
    603603#endif
     
    619619            return -1;
    620620        }
    621 #ifndef __L4ENV__
     621#ifndef RT_OS_L4
    622622    }
    623623#endif
     
    632632    OSSVoiceOut *oss = (OSSVoiceOut *) hw;
    633633
    634 #ifdef __L4ENV__
     634#ifdef RT_OS_L4
    635635    return 0;
    636636#else
     
    847847    {"NFRAGS", AUD_OPT_INT, &conf.nfrags,
    848848     "Number of fragments", NULL, 0},
    849 #ifndef __L4ENV__
     849#ifndef RT_OS_L4
    850850    {"MMAP", AUD_OPT_BOOL, &conf.try_mmap,
    851851     "Try using memory mapped access", NULL, 0},
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette