VirtualBox

Ignore:
Timestamp:
Jan 11, 2011 1:45:20 PM (14 years ago)
Author:
vboxsync
Message:

Devices/Audio: fixed fallback to nul host audio driver. Added the fallback to HDA audio device. (xTracker 5404).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r35353 r35487  
    16341634    ac97Reset (pDevIns);
    16351635
    1636     if (!s->voice_pi)
     1636    if (!AUD_is_host_voice_in_ok(s->voice_pi))
    16371637        LogRel (("AC97: WARNING: Unable to open PCM IN!\n"));
    1638     if (!s->voice_mc)
     1638    if (!AUD_is_host_voice_in_ok(s->voice_mc))
    16391639        LogRel (("AC97: WARNING: Unable to open PCM MC!\n"));
    1640     if (!s->voice_po)
     1640    if (!AUD_is_host_voice_out_ok(s->voice_po))
    16411641        LogRel (("AC97: WARNING: Unable to open PCM OUT!\n"));
    16421642
    1643     if (!s->voice_pi && !s->voice_po && !s->voice_mc)
     1643    if (   !AUD_is_host_voice_in_ok(s->voice_pi)
     1644        && !AUD_is_host_voice_out_ok(s->voice_po)
     1645        && !AUD_is_host_voice_in_ok(s->voice_mc))
    16441646    {
    16451647        /* Was not able initialize *any* voice. Select the NULL audio driver instead */
     
    16571659                "with the consequence that no sound is audible"));
    16581660    }
    1659     else if (!s->voice_pi || !s->voice_po || !s->voice_mc)
     1661    else if (   !AUD_is_host_voice_in_ok(s->voice_pi)
     1662             || !AUD_is_host_voice_out_ok(s->voice_po)
     1663             || !AUD_is_host_voice_in_ok(s->voice_mc))
    16601664    {
    16611665        char   szMissingVoices[128];
    16621666        size_t len = 0;
    1663         if (!s->voice_pi)
     1667        if (!AUD_is_host_voice_in_ok(s->voice_pi))
    16641668            len = RTStrPrintf (szMissingVoices, sizeof(szMissingVoices), "PCM_in");
    1665         if (!s->voice_po)
     1669        if (!AUD_is_host_voice_out_ok(s->voice_po))
    16661670            len += RTStrPrintf (szMissingVoices + len, sizeof(szMissingVoices) - len, len ? ", PCM_out" : "PCM_out");
    1667         if (!s->voice_mc)
     1671        if (!AUD_is_host_voice_in_ok(s->voice_mc))
    16681672            len += RTStrPrintf (szMissingVoices + len, sizeof(szMissingVoices) - len, len ? ", PCM_mic" : "PCM_mic");
    16691673
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