VirtualBox

Changeset 76699 in vbox


Ignore:
Timestamp:
Jan 8, 2019 9:54:53 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Added a debug assertion for frame-aligned writes for drvAudioStreamWrite().

File:
1 edited

Legend:

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

    r76697 r76699  
    897897
    898898    AssertMsg(pStream->enmDir == PDMAUDIODIR_OUT,
    899               ("Stream '%s' is not an output stream and therefore cannot be written to (direction is 0x%x)\n",
    900                pStream->szName, pStream->enmDir));
     899              ("Stream '%s' is not an output stream and therefore cannot be written to (direction is '%s')\n",
     900               pStream->szName, DrvAudioHlpAudDirToStr(pStream->enmDir)));
     901
     902    AssertMsg(DrvAudioHlpBytesIsAligned(cbBuf, &pStream->Guest.Cfg.Props),
     903              ("Stream '%s' got a non-frame-aligned write (%RU32 bytes)\n", pStream->szName, cbBuf));
    901904
    902905    uint32_t cbWrittenTotal = 0;
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