Changeset 82599 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 16, 2019 7:06:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStream.cpp
r82566 r82599 90 90 #endif 91 91 92 const bool fIsInput = hdaGetDirFromSD(uSD) == PDMAUDIODIR_IN; 93 94 if (fIsInput) 95 { 96 pStreamShared->State.Cfg.u.enmSrc = PDMAUDIORECSRC_UNKNOWN; 97 pStreamShared->State.Cfg.enmDir = PDMAUDIODIR_IN; 98 } 99 else 100 { 101 pStreamShared->State.Cfg.u.enmDst = PDMAUDIOPLAYBACKDST_UNKNOWN; 102 pStreamShared->State.Cfg.enmDir = PDMAUDIODIR_OUT; 103 } 104 92 105 pStreamR3->Dbg.Runtime.fEnabled = pThisCC->Dbg.fEnabled; 93 106 … … 98 111 99 112 /* pFileStream */ 100 if ( hdaGetDirFromSD(uSD) == PDMAUDIODIR_IN)113 if (fIsInput) 101 114 RTStrPrintf(szFile, sizeof(szFile), "hdaStreamWriteSD%RU8", uSD); 102 115 else … … 111 124 112 125 /* pFileDMARaw */ 113 if ( hdaGetDirFromSD(uSD) == PDMAUDIODIR_IN)126 if (fIsInput) 114 127 RTStrPrintf(szFile, sizeof(szFile), "hdaDMARawWriteSD%RU8", uSD); 115 128 else … … 124 137 125 138 /* pFileDMAMapped */ 126 if ( hdaGetDirFromSD(uSD) == PDMAUDIODIR_IN)139 if (fIsInput) 127 140 RTStrPrintf(szFile, sizeof(szFile), "hdaDMAWriteMappedSD%RU8", uSD); 128 141 else
Note:
See TracChangeset
for help on using the changeset viewer.