VirtualBox

Changeset 89131 in vbox


Ignore:
Timestamp:
May 17, 2021 11:55:04 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144472
Message:

DrvAudio: Fixed missing VINF_SUCCESS indicators in some DRAIN command paths. Log byte counts/offset as hex (easier to see stereo misalignments in hex among other things). bugref:9890

File:
1 edited

Legend:

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

    r89022 r89131  
    26732673                            pStreamEx->fStatus |= PDMAUDIOSTREAM_STS_PENDING_DISABLE;
    26742674                            PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->fStatus);
     2675                            rc = VINF_SUCCESS;
    26752676                            break;
    26762677                        }
     
    27122713                        pStreamEx->fStatus |= PDMAUDIOSTREAM_STS_PENDING_DISABLE;
    27132714                        PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->fStatus);
     2715                        rc = VINF_SUCCESS;
    27142716                        break;
    27152717
     
    31913193
    31923194    RTCritSectLeave(&pThis->CritSect);
    3193     Log3Func(("[%s] cbReadable=%RU32 (%RU64ms)\n",
     3195    Log3Func(("[%s] cbReadable=%#RX32 (%RU64ms)\n",
    31943196              pStreamEx->Core.szName, cbReadable, PDMAudioPropsBytesToMilli(&pStreamEx->Host.Cfg.Props, cbReadable)));
    31953197    return cbReadable;
     
    32953297
    32963298    RTCritSectLeave(&pThis->CritSect);
    3297     Log3Func(("[%s] cbWritable=%RU32 (%RU64ms) enmPlayMode=%s enmBackendState=%s\n",
     3299    Log3Func(("[%s] cbWritable=%#RX32 (%RU64ms) enmPlayMode=%s enmBackendState=%s\n",
    32983300              pStreamEx->Core.szName, cbWritable, PDMAudioPropsBytesToMilli(&pStreamEx->Host.Cfg.Props, cbWritable),
    32993301              drvAudioPlayStateName(enmPlayMode), PDMHostAudioStreamStateGetName(enmBackendState) ));
     
    34103412
    34113413    AssertMsg(PDMAudioPropsIsSizeAligned(&pStreamEx->Guest.Cfg.Props, cbBuf),
    3412               ("Stream '%s' got a non-frame-aligned write (%RU32 bytes)\n", pStreamEx->Core.szName, cbBuf));
     3414              ("Stream '%s' got a non-frame-aligned write (%#RX32 bytes)\n", pStreamEx->Core.szName, cbBuf));
    34133415
    34143416    int rc = RTCritSectEnter(&pThis->CritSect);
Note: See TracChangeset for help on using the changeset viewer.

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