VirtualBox

儲存庫 vbox 的更動 62581


忽略:
時間撮記:
2016-7-27 上午09:57:41 (8 年 以前)
作者:
vboxsync
訊息:

Audio: Committed too much.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp

    r62580 r62581  
    366366    bool fEqual =    pProps->uHz         == pCfg->uHz
    367367                  && pProps->cChannels   == pCfg->cChannels
    368                   && pProps->cbBitrate   == pCfg->cbBitrate
    369368                  && pProps->fSigned     == fSigned
    370369                  && pProps->cBits       == cBits
     
    383382    return    pProps1->uHz         == pProps2->uHz
    384383           && pProps1->cChannels   == pProps2->cChannels
    385            && pProps1->cbBitrate   == pProps2->cbBitrate
    386384           && pProps1->fSigned     == pProps2->fSigned
    387385           && pProps1->cBits       == pProps2->cBits
     
    403401    pCfg->uHz           = pPCMProps->uHz;
    404402    pCfg->cChannels     = pPCMProps->cChannels;
    405     pCfg->cbBitrate     = DrvAudioHlpCalcBitrate(pPCMProps->cBits, pPCMProps->uHz, pPCMProps->cChannels) / 8;
    406403    pCfg->enmFormat     = DrvAudioAudFmtBitsToAudFmt(pPCMProps->cBits, pPCMProps->fSigned);
    407404
     
    441438    fValid |= pCfg->uHz > 0;
    442439    /** @todo Check for defined frequencies supported. */
    443     fValid |= pCfg->cbBitrate > 0;
    444440
    445441    return fValid;
     
    498494        pProps->cChannels   = pCfg->cChannels;
    499495        pProps->uAlign      = (1 << pProps->cShift) - 1;
    500         pProps->cbBitrate   = DrvAudioHlpCalcBitrate(pCfg) / 8;
    501496        pProps->fSwapEndian = pCfg->enmEndianness != PDMAUDIOHOSTENDIANNESS;
    502497    }
     
    535530            break;
    536531    }
    537 
    538     LogFlow((", bitrate=%RU32", pCfg->cbBitrate));
    539532
    540533    LogFlow((", endianness="));
     
    681674    Assert(pProps->cChannels);
    682675    Assert(pProps->uHz);
    683     Assert(pProps->cbBitrate);
    684676    Assert(pProps->cBits);
    685677
     
    702694    pData->Hdr.u16NumChannels   = pProps->cChannels;
    703695    pData->Hdr.u32SampleRate    = pProps->uHz;
    704     pData->Hdr.u32ByteRate      = pProps->cbBitrate / 8;
     696    pData->Hdr.u32ByteRate      = DrvAudioHlpCalcBitrate(pProps->cBits, pProps->uHz, pProps->cChannels) / 8;
    705697    pData->Hdr.u16BlockAlign    = pProps->cChannels * pProps->cBits / 8;
    706698    pData->Hdr.u16BitsPerSample = pProps->cBits;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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