Changeset 62605 in vbox for trunk/src/VBox/Devices/Audio/DevIchHda.cpp
- Timestamp:
- Jul 27, 2016 4:31:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r62463 r62605 2856 2856 2857 2857 if ( RT_FAILURE(rc2) 2858 && (pDrv->Flags & PDMAUDIODRVFLAG _PRIMARY)) /* We only care about primary drivers here, the rest may fail. */2858 && (pDrv->Flags & PDMAUDIODRVFLAGS_PRIMARY)) /* We only care about primary drivers here, the rest may fail. */ 2859 2859 { 2860 2860 if (RT_SUCCESS(rc)) … … 5600 5600 */ 5601 5601 if (pDrv->uLUN == 0) 5602 pDrv->Flags |= PDMAUDIODRVFLAG _PRIMARY;5602 pDrv->Flags |= PDMAUDIODRVFLAGS_PRIMARY; 5603 5603 5604 5604 LogFunc(("LUN#%u: pCon=%p, drvFlags=0x%x\n", uLUN, pDrv->pConnector, pDrv->Flags)); … … 5916 5916 if (RT_SUCCESS(rc)) 5917 5917 { 5918 /* Set a default audio format for our mixer. */5919 PDMAUDIOSTREAMCFG streamCfg;5920 streamCfg.uHz = 44100;5921 streamCfg.cChannels = 2;5922 streamCfg.enmFormat = PDMAUDIOFMT_S16;5923 streamCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS;5924 5925 rc = AudioMixerSetDeviceFormat(pThis->pMixer, &streamCfg);5926 AssertRC(rc);5927 5928 5918 /* 5929 5919 * Add mixer output sinks. … … 6012 6002 * might not worth showing an own error message box in the GUI. 6013 6003 */ 6014 if (!(pDrv->Flags & PDMAUDIODRVFLAG _PRIMARY))6004 if (!(pDrv->Flags & PDMAUDIODRVFLAGS_PRIMARY)) 6015 6005 continue; 6016 6006 … … 6221 6211 /* Only register primary driver. 6222 6212 * The device emulation does the output multiplexing then. */ 6223 if (pDrv->Flags != PDMAUDIODRVFLAG _PRIMARY)6213 if (pDrv->Flags != PDMAUDIODRVFLAGS_PRIMARY) 6224 6214 continue; 6225 6215
Note:
See TracChangeset
for help on using the changeset viewer.