VirtualBox

Ignore:
Timestamp:
Feb 27, 2007 11:00:14 AM (18 years ago)
Author:
vboxsync
Message:

fix Vista crash if sound is enabled; made audio LogRel consistent; winmm was never used, show dsound instead

File:
1 edited

Legend:

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

    r366 r1071  
    227227        oss_logerr2 (errno, typ, "Failed to open `%s'\n", dspname);
    228228#else
    229         LogRel(("Audio/OSS: Failed to open %s for %s (%s)\n",
     229        LogRel(("OSS: Failed to open %s for %s (%s)\n",
    230230                 dspname, typ, strerror(errno)));
    231231#endif
     
    234234
    235235#ifdef VBOX
    236     LogRel(("Audio/OSS: Successfully opened %s for %s\n", dspname, typ));
     236    LogRel(("OSS: Successfully opened %s for %s\n", dspname, typ));
    237237#endif
    238238
     
    245245        oss_logerr2 (errno, typ, "Failed to set sample size %d\n", req->fmt);
    246246#else
    247         LogRel(("Audio/OSS: Failed to set sample size %d (%s)\n",
     247        LogRel(("OSS: Failed to set sample size %d (%s)\n",
    248248                 req->fmt, strerror(errno)));
    249249#endif
     
    256256                     req->nchannels);
    257257#else
    258         LogRel(("Audio/OSS: Failed to set nchannels=%d (%s)\n",
     258        LogRel(("OSS: Failed to set nchannels=%d (%s)\n",
    259259                 req->nchannels, strerror(errno)));
    260260#endif
     
    266266        oss_logerr2 (errno, typ, "Failed to set frequency %d\n", req->freq);
    267267#else
    268         LogRel(("Audio/OSS: Failed to set freq=%dHZ\n", req->freq, strerror(errno)));
     268        LogRel(("OSS: Failed to set freq=%dHZ\n", req->freq, strerror(errno)));
    269269#endif
    270270        goto err;
     
    275275        oss_logerr2 (errno, typ, "Failed to set non-blocking mode\n");
    276276#else
    277         LogRel(("Audio/OSS: Failed to set non-blocking mode (%s)\n", strerror(errno)));
     277        LogRel(("OSS: Failed to set non-blocking mode (%s)\n", strerror(errno)));
    278278#endif
    279279        goto err;
     
    286286                     req->nfrags, req->fragsize);
    287287#else
    288         LogRel(("Audio/OSS: Failed to set buffer_length=%d,%d (%s)\n",
     288        LogRel(("OSS: Failed to set buffer_length=%d,%d (%s)\n",
    289289                req->nfrags, req->fragsize, strerror(errno)));
    290290#endif
     
    296296        oss_logerr2 (errno, typ, "Failed to get buffer length\n");
    297297#else
    298         LogRel(("Audio/OSS: Failed to get buffer length (%s)\n", strerror(errno)));
     298        LogRel(("OSS: Failed to get buffer length (%s)\n", strerror(errno)));
    299299#endif
    300300        goto err;
     
    327327    oss_anal_close (&fd);
    328328#ifdef VBOX
    329     LogRel(("Audio/OSS: Closed %s for %s\n",
     329    LogRel(("OSS: Closed %s for %s\n",
    330330            in ? conf.devpath_in : conf.devpath_out, in ? "ADC" : "DAC"));
    331331#endif
     
    482482    oss_anal_close (&oss->fd);
    483483#ifdef VBOX
    484     LogRel(("Audio/OSS: Closed %s for DAC\n", conf.devpath_out));
     484    LogRel(("OSS: Closed %s for DAC\n", conf.devpath_out));
    485485#endif
    486486
     
    530530        oss_anal_close (&fd);
    531531#ifdef VBOX
    532     LogRel(("Audio/OSS: Closed %s for DAC\n", conf.devpath_out));
     532    LogRel(("OSS: Closed %s for DAC\n", conf.devpath_out));
    533533#endif
    534534        return -1;
     
    611611            oss_anal_close (&fd);
    612612#ifdef VBOX
    613     LogRel(("Audio/OSS: Closed %s for DAC\n", conf.devpath_out));
     613    LogRel(("OSS: Closed %s for DAC\n", conf.devpath_out));
    614614#endif
    615615            return -1;
     
    687687        oss_anal_close (&fd);
    688688#ifdef VBOX
    689     LogRel(("Audio/OSS: Closed %s for ADC\n", conf.devpath_in));
     689    LogRel(("OSS: Closed %s for ADC\n", conf.devpath_in));
    690690#endif
    691691        return -1;
     
    713713        oss_anal_close (&fd);
    714714#ifdef VBOX
    715     LogRel(("Audio/OSS: Closed %s for ADC\n", conf.devpath_in));
     715    LogRel(("OSS: Closed %s for ADC\n", conf.devpath_in));
    716716#endif
    717717        return -1;
     
    728728    oss_anal_close (&oss->fd);
    729729#ifdef VBOX
    730     LogRel(("Audio/OSS: Closed %s for ADC\n", conf.devpath_in));
     730    LogRel(("OSS: Closed %s for ADC\n", conf.devpath_in));
    731731#endif
    732732
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