Changeset 60360 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 6, 2016 2:04:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r60353 r60360 747 747 { 748 748 case PI_INDEX: 749 streamCfg.uHz = ichac97MixerGet(pThis, AC97_PCM_LR_ADC_Rate); 749 streamCfg.uHz = ichac97MixerGet(pThis, AC97_PCM_LR_ADC_Rate); 750 streamCfg.enmDir = PDMAUDIODIR_IN; 751 streamCfg.DestSource.Source = PDMAUDIORECSOURCE_LINE; 750 752 break; 751 753 752 754 case MC_INDEX: 753 streamCfg.uHz = ichac97MixerGet(pThis, AC97_MIC_ADC_Rate); 755 streamCfg.uHz = ichac97MixerGet(pThis, AC97_MIC_ADC_Rate); 756 streamCfg.enmDir = PDMAUDIODIR_IN; 757 streamCfg.DestSource.Source = PDMAUDIORECSOURCE_MIC; 754 758 break; 755 759 756 760 case PO_INDEX: 757 streamCfg.uHz = ichac97MixerGet(pThis, AC97_PCM_Front_DAC_Rate); 761 streamCfg.uHz = ichac97MixerGet(pThis, AC97_PCM_Front_DAC_Rate); 762 streamCfg.enmDir = PDMAUDIODIR_OUT; 763 streamCfg.DestSource.Dest = PDMAUDIOPLAYBACKDEST_FRONT; 758 764 break; 759 765 … … 768 774 if (streamCfg.uHz) 769 775 { 770 streamCfg.cChannels = 2;771 streamCfg.enmFormat = AUD_FMT_S16;772 streamCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS;776 streamCfg.cChannels = 2; 777 streamCfg.enmFormat = AUD_FMT_S16; 778 streamCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS; 773 779 774 780 return ichac97StreamInitEx(pThis, pStrmSt, u8Strm, &streamCfg);
Note:
See TracChangeset
for help on using the changeset viewer.