VirtualBox

Changeset 70865 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Feb 5, 2018 1:19:31 PM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDSound.cpp: Log requested / acquired playback format.

File:
1 edited

Legend:

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

    r70864 r70865  
    637637        return E_INVALIDARG;
    638638
     639    DSLOG(("DSound: Requested playback format:\n"
     640           "  wFormatTag      = %RI16\n"
     641           "  nChannels       = %RI16\n"
     642           "  nSamplesPerSec  = %RU32\n"
     643           "  nAvgBytesPerSec = %RU32\n"
     644           "  nBlockAlign     = %RI16\n"
     645           "  wBitsPerSample  = %RI16\n"
     646           "  cbSize          = %RI16\n",
     647           wfx.wFormatTag,
     648           wfx.nChannels,
     649           wfx.nSamplesPerSec,
     650           wfx.nAvgBytesPerSec,
     651           wfx.nBlockAlign,
     652           wfx.wBitsPerSample,
     653           wfx.cbSize));
     654
    639655    dsoundUpdateStatusInternal(pThis);
    640656
     
    688704
    689705        /*
    690          * Query the actual parameters.
     706         * Query the actual parameters set for this stream.
     707         * Those might be different than the initially requested parameters.
    691708         */
     709        RT_ZERO(wfx);
    692710        hr = IDirectSoundBuffer8_GetFormat(pStreamDS->Out.pDSB, &wfx, sizeof(wfx), NULL);
    693711        if (FAILED(hr))
     
    708726        }
    709727
    710         DSLOG(("DSound: Playback format:\n"
     728        DSLOG(("DSound: Acquired playback format:\n"
    711729               "  dwBufferBytes   = %RI32\n"
    712730               "  dwFlags         = 0x%x\n"
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