- Timestamp:
- Jun 22, 2017 3:07:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r67362 r67565 481 481 streamCfg.enmDir = PDMAUDIODIR_OUT; 482 482 streamCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 483 484 streamCfg.Props.uHz = pThis->freq; 485 streamCfg.Props.cChannels = 1 << pThis->fmt_stereo; 486 streamCfg.Props.cBits = pThis->fmt_bits; 487 streamCfg.Props.fSigned = RT_BOOL(pThis->fmt_signed); 483 streamCfg.enmLayout = PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED; 484 485 streamCfg.Props.uHz = pThis->freq; 486 streamCfg.Props.cChannels = 1 << pThis->fmt_stereo; 487 streamCfg.Props.cBits = pThis->fmt_bits; 488 streamCfg.Props.fSigned = RT_BOOL(pThis->fmt_signed); 489 streamCfg.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(streamCfg.Props.cBits, streamCfg.Props.cChannels); 488 490 489 491 int rc = sb16OpenOut(pThis, &streamCfg); … … 621 623 streamCfg.enmDir = PDMAUDIODIR_OUT; 622 624 streamCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 625 streamCfg.enmLayout = PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED; 623 626 624 627 streamCfg.Props.uHz = pThis->freq; … … 626 629 streamCfg.Props.cBits = pThis->fmt_bits; 627 630 streamCfg.Props.fSigned = RT_BOOL(pThis->fmt_signed); 631 streamCfg.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(streamCfg.Props.cBits, streamCfg.Props.cChannels); 628 632 629 633 int rc = sb16OpenOut(pThis, &streamCfg); … … 1156 1160 streamCfg.enmDir = PDMAUDIODIR_OUT; 1157 1161 streamCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 1162 streamCfg.enmLayout = PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED; 1158 1163 1159 1164 streamCfg.Props.uHz = pThis->freq; … … 1161 1166 streamCfg.Props.cBits = 8; 1162 1167 streamCfg.Props.fSigned = false; 1168 streamCfg.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(streamCfg.Props.cBits, streamCfg.Props.cChannels); 1163 1169 1164 1170 int rc2 = sb16OpenOut(pThis, &streamCfg); … … 2013 2019 streamCfg.enmDir = PDMAUDIODIR_OUT; 2014 2020 streamCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 2015 2016 streamCfg.Props.uHz = pThis->freq; 2017 streamCfg.Props.cChannels = 1 << pThis->fmt_stereo; 2018 streamCfg.Props.cBits = pThis->fmt_bits; 2019 streamCfg.Props.fSigned = RT_BOOL(pThis->fmt_signed); 2021 streamCfg.enmLayout = PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED; 2022 2023 streamCfg.Props.uHz = pThis->freq; 2024 streamCfg.Props.cChannels = 1 << pThis->fmt_stereo; 2025 streamCfg.Props.cBits = pThis->fmt_bits; 2026 streamCfg.Props.fSigned = RT_BOOL(pThis->fmt_signed); 2027 streamCfg.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(streamCfg.Props.cBits, streamCfg.Props.cChannels); 2020 2028 2021 2029 int rc = sb16OpenOut(pThis, &streamCfg); … … 2122 2130 CfgHost.Props.cBits = pCfg->Props.cBits; 2123 2131 CfgHost.Props.fSigned = pCfg->Props.fSigned; 2132 CfgHost.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(CfgHost.Props.cBits, CfgHost.Props.cChannels); 2124 2133 2125 2134 RTStrPrintf(CfgHost.szName, sizeof(CfgHost.szName), "sb16.po");
Note:
See TracChangeset
for help on using the changeset viewer.