VirtualBox

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


Ignore:
Timestamp:
May 31, 2021 7:27:54 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144764
Message:

DrvHostAudioWasApi: Ignore AUDCLNT_E_UNSUPPORTED_FORMAT. bugref:9890

File:
1 edited

Legend:

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

    r89393 r89411  
    976976    /*
    977977     * If the format is supported, go ahead and initialize the client instance.
    978      */
    979     if (SUCCEEDED(hrc) || hrc == AUDCLNT_E_UNSUPPORTED_FORMAT)
    980     {
    981         if (hrc == S_OK || hrc == AUDCLNT_E_UNSUPPORTED_FORMAT)
    982             Log8Func(("IsFormatSupport(,%s,) -> S_OK + %p: requested format is supported\n", pDevCfg->szProps, pClosestMatch));
     978     *
     979     * The docs talks about AUDCLNT_E_UNSUPPORTED_FORMAT being success too, but
     980     * that doesn't seem to be the case (at least not for mixing up the
     981     * WAVEFORMATEX::wFormatTag values).  Seems that is the standard return code
     982     * if there is anything it doesn't grok.
     983     */
     984    if (SUCCEEDED(hrc))
     985    {
     986        if (hrc == S_OK)
     987            Log8Func(("IsFormatSupported(,%s,) -> S_OK + %p: requested format is supported\n", pDevCfg->szProps, pClosestMatch));
    983988        else
    984             Log8Func(("IsFormatSupport(,%s,) -> %Rhrc + %p: %uch S%u %uHz\n", pDevCfg->szProps, hrc, pClosestMatch,
     989            Log8Func(("IsFormatSupported(,%s,) -> %Rhrc + %p: %uch S%u %uHz\n", pDevCfg->szProps, hrc, pClosestMatch,
    985990                      pClosestMatch ? pClosestMatch->nChannels : 0, pClosestMatch ? pClosestMatch->wBitsPerSample : 0,
    986991                      pClosestMatch ? pClosestMatch->nSamplesPerSec : 0));
     
    10701075    }
    10711076    else
    1072         LogRelMax(64,("WasAPI: IAudioClient::IsFormatSupport(,%s,) failed: %Rhrc\n", pDevCfg->szProps, hrc));
     1077        LogRelMax(64,("WasAPI: IAudioClient::IsFormatSupported(,%s,) failed: %Rhrc\n", pDevCfg->szProps, hrc));
    10731078
    10741079    pIAudioClient->Release();
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