儲存庫 vbox 的更動 62581
- 時間撮記:
- 2016-7-27 上午09:57:41 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r62580 r62581 366 366 bool fEqual = pProps->uHz == pCfg->uHz 367 367 && pProps->cChannels == pCfg->cChannels 368 && pProps->cbBitrate == pCfg->cbBitrate369 368 && pProps->fSigned == fSigned 370 369 && pProps->cBits == cBits … … 383 382 return pProps1->uHz == pProps2->uHz 384 383 && pProps1->cChannels == pProps2->cChannels 385 && pProps1->cbBitrate == pProps2->cbBitrate386 384 && pProps1->fSigned == pProps2->fSigned 387 385 && pProps1->cBits == pProps2->cBits … … 403 401 pCfg->uHz = pPCMProps->uHz; 404 402 pCfg->cChannels = pPCMProps->cChannels; 405 pCfg->cbBitrate = DrvAudioHlpCalcBitrate(pPCMProps->cBits, pPCMProps->uHz, pPCMProps->cChannels) / 8;406 403 pCfg->enmFormat = DrvAudioAudFmtBitsToAudFmt(pPCMProps->cBits, pPCMProps->fSigned); 407 404 … … 441 438 fValid |= pCfg->uHz > 0; 442 439 /** @todo Check for defined frequencies supported. */ 443 fValid |= pCfg->cbBitrate > 0;444 440 445 441 return fValid; … … 498 494 pProps->cChannels = pCfg->cChannels; 499 495 pProps->uAlign = (1 << pProps->cShift) - 1; 500 pProps->cbBitrate = DrvAudioHlpCalcBitrate(pCfg) / 8;501 496 pProps->fSwapEndian = pCfg->enmEndianness != PDMAUDIOHOSTENDIANNESS; 502 497 } … … 535 530 break; 536 531 } 537 538 LogFlow((", bitrate=%RU32", pCfg->cbBitrate));539 532 540 533 LogFlow((", endianness=")); … … 681 674 Assert(pProps->cChannels); 682 675 Assert(pProps->uHz); 683 Assert(pProps->cbBitrate);684 676 Assert(pProps->cBits); 685 677 … … 702 694 pData->Hdr.u16NumChannels = pProps->cChannels; 703 695 pData->Hdr.u32SampleRate = pProps->uHz; 704 pData->Hdr.u32ByteRate = pProps->cbBitrate/ 8;696 pData->Hdr.u32ByteRate = DrvAudioHlpCalcBitrate(pProps->cBits, pProps->uHz, pProps->cChannels) / 8; 705 697 pData->Hdr.u16BlockAlign = pProps->cChannels * pProps->cBits / 8; 706 698 pData->Hdr.u16BitsPerSample = pProps->cBits;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器