Changeset 89445 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 1, 2021 8:58:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r89412 r89445 3425 3425 3426 3426 /* Make sure to align the writable size to the host's frame size. */ 3427 cbWritable = PDMAudioPropsFloorBytesToFrame(&pStreamEx-> Host.Cfg.Props, cbWritable);3427 cbWritable = PDMAudioPropsFloorBytesToFrame(&pStreamEx->Core.Props, cbWritable); 3428 3428 } 3429 3429 … … 3431 3431 RTCritSectLeave(&pStreamEx->Core.CritSect); 3432 3432 Log3Func(("[%s] cbWritable=%#RX32 (%RU64ms) enmPlayMode=%s enmBackendState=%s\n", 3433 pStreamEx->Core.szName, cbWritable, PDMAudioPropsBytesToMilli(&pStreamEx-> Host.Cfg.Props, cbWritable),3433 pStreamEx->Core.szName, cbWritable, PDMAudioPropsBytesToMilli(&pStreamEx->Core.Props, cbWritable), 3434 3434 drvAudioPlayStateName(enmPlayMode), PDMHostAudioStreamStateGetName(enmBackendState) )); 3435 3435 return cbWritable; … … 3466 3466 pStreamEx->Core.szName, PDMAudioDirGetName(pStreamEx->Core.enmDir)), VERR_ACCESS_DENIED); 3467 3467 3468 AssertMsg(PDMAudioPropsIsSizeAligned(&pStreamEx-> Guest.Cfg.Props, cbBuf),3468 AssertMsg(PDMAudioPropsIsSizeAligned(&pStreamEx->Core.Props, cbBuf), 3469 3469 ("Stream '%s' got a non-frame-aligned write (%#RX32 bytes)\n", pStreamEx->Core.szName, cbBuf)); 3470 3470 … … 3620 3620 { 3621 3621 uint64_t const cNsStream = RTTimeNanoTS() - pStreamEx->nsStarted; 3622 uint64_t const offCur = PDMAudioPropsNanoToBytes64(&pStreamEx-> Guest.Cfg.Props, cNsStream);3622 uint64_t const offCur = PDMAudioPropsNanoToBytes64(&pStreamEx->Core.Props, cNsStream); 3623 3623 if (offCur > pStreamEx->offInternal) 3624 3624 { … … 3639 3639 3640 3640 /* Make sure to align the readable size to the host's frame size. */ 3641 cbReadable = PDMAudioPropsFloorBytesToFrame(&pStreamEx-> Host.Cfg.Props, cbReadable);3641 cbReadable = PDMAudioPropsFloorBytesToFrame(&pStreamEx->Core.Props, cbReadable); 3642 3642 } 3643 3643 … … 3645 3645 RTCritSectLeave(&pStreamEx->Core.CritSect); 3646 3646 Log3Func(("[%s] cbReadable=%#RX32 (%RU64ms) enmCaptureMode=%s enmBackendState=%s\n", 3647 pStreamEx->Core.szName, cbReadable, PDMAudioPropsBytesToMilli(&pStreamEx-> Host.Cfg.Props, cbReadable),3647 pStreamEx->Core.szName, cbReadable, PDMAudioPropsBytesToMilli(&pStreamEx->Core.Props, cbReadable), 3648 3648 drvAudioCaptureStateName(enmCaptureState), PDMHostAudioStreamStateGetName(enmBackendState) )); 3649 3649 return cbReadable; … … 3667 3667 /** @todo Does not take paused time into account... */ 3668 3668 uint64_t const cNsStream = RTTimeNanoTS() - pStreamEx->nsStarted; 3669 uint64_t const offCur = PDMAudioPropsNanoToBytes64(&pStreamEx-> Guest.Cfg.Props, cNsStream);3669 uint64_t const offCur = PDMAudioPropsNanoToBytes64(&pStreamEx->Core.Props, cNsStream); 3670 3670 if (offCur > pStreamEx->offInternal) 3671 3671 { … … 3675 3675 pStreamEx->offInternal += cbToClear; 3676 3676 cbBuf -= cbToClear; 3677 PDMAudioPropsClearBuffer(&pStreamEx-> Guest.Cfg.Props, pbBuf, cbToClear,3678 PDMAudioPropsBytesToFrames(&pStreamEx-> Guest.Cfg.Props, cbToClear));3677 PDMAudioPropsClearBuffer(&pStreamEx->Core.Props, pbBuf, cbToClear, 3678 PDMAudioPropsBytesToFrames(&pStreamEx->Core.Props, cbToClear)); 3679 3679 } 3680 3680 else … … 3769 3769 pStreamEx->Core.szName, PDMAudioDirGetName(pStreamEx->Core.enmDir)), VERR_ACCESS_DENIED); 3770 3770 3771 AssertMsg(PDMAudioPropsIsSizeAligned(&pStreamEx-> Guest.Cfg.Props, cbBuf),3771 AssertMsg(PDMAudioPropsIsSizeAligned(&pStreamEx->Core.Props, cbBuf), 3772 3772 ("Stream '%s' got a non-frame-aligned write (%#RX32 bytes)\n", pStreamEx->Core.szName, cbBuf)); 3773 3773
Note:
See TracChangeset
for help on using the changeset viewer.