VirtualBox

Changeset 60360 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 6, 2016 2:04:31 PM (9 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Use the new PDMAUDIODIR_IN / DestSource attributes as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r60353 r60360  
    747747    {
    748748        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;
    750752            break;
    751753
    752754        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;
    754758            break;
    755759
    756760        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;
    758764            break;
    759765
     
    768774    if (streamCfg.uHz)
    769775    {
    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;
    773779
    774780        return ichac97StreamInitEx(pThis, pStrmSt, u8Strm, &streamCfg);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette