Changeset 89411 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- May 31, 2021 7:27:54 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144764
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp
r89393 r89411 976 976 /* 977 977 * 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)); 983 988 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, 985 990 pClosestMatch ? pClosestMatch->nChannels : 0, pClosestMatch ? pClosestMatch->wBitsPerSample : 0, 986 991 pClosestMatch ? pClosestMatch->nSamplesPerSec : 0)); … … 1070 1075 } 1071 1076 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)); 1073 1078 1074 1079 pIAudioClient->Release();
Note:
See TracChangeset
for help on using the changeset viewer.