VirtualBox

Changeset 104499 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 3, 2024 9:29:15 AM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163021
Message:

Audio/AudioMixer: Made the debug (.WAV) file of an output sink actually write something. Was missing before.

File:
1 edited

Legend:

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

    r103162 r104499  
    15601560        if (cFramesToRead > 0)
    15611561        {
     1562            PAUDIOHLPFILE pFile = pSink->Dbg.pFile; /* Beacon for writing multiplexed data only once. */
     1563
    15621564            /*
    15631565             * For each of the enabled streams, convert cFramesToRead frames from
     
    15901592                                        &pMixStream->PeekState, pvBuf, cbBuf, &cbDstPeeked);
    15911593                        offSrcFrame += cSrcFramesPeeked;
     1594
     1595                        if (RT_UNLIKELY(pFile))
     1596                        {
     1597                            AudioHlpFileWrite(pFile, pvBuf, cbDstPeeked);
     1598                            pFile = NULL;
     1599                        }
    15921600
    15931601                        /* Write it to the backend.  Since've checked that there is buffer
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