Changeset 89354 in vbox
- Timestamp:
- May 28, 2021 12:57:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r89352 r89354 924 924 * Destroys (uninitializes) a mixing buffer. 925 925 * 926 * @param pMixBuf Mixing buffer to destroy. 926 * @param pMixBuf The mixing buffer. Uninitialized mixer buffers will be 927 * quietly ignored. As will NULL. 927 928 */ 928 929 void AudioMixBufDestroy(PAUDIOMIXBUF pMixBuf) … … 933 934 /* Ignore calls for an uninitialized (zeroed) or already destroyed instance. Happens a lot. */ 934 935 if ( pMixBuf->uMagic == 0 935 || pMixBuf->uMagic == ~AUDIOMIXBUF_MAGIC)936 || pMixBuf->uMagic == AUDIOMIXBUF_MAGIC_DEAD) 936 937 { 937 938 Assert(!pMixBuf->pszName); … … 969 970 * This will reset the read and write offsets to zero. 970 971 * 971 * @param pMixBuf The mixing buffer. 972 * @param pMixBuf The mixing buffer. Uninitialized mixer buffers will be 973 * quietly ignored. 972 974 */ 973 975 void AudioMixBufDrop(PAUDIOMIXBUF pMixBuf) 974 976 { 975 977 AssertPtrReturnVoid(pMixBuf); 976 AssertReturnVoid(pMixBuf->uMagic == AUDIOMIXBUF_MAGIC); 978 979 /* Ignore uninitialized (zeroed) mixer sink buffers (happens with AC'97 during VM construction). */ 980 if ( pMixBuf->uMagic == 0 981 || pMixBuf->uMagic == AUDIOMIXBUF_MAGIC_DEAD) 982 return; 977 983 978 984 AUDMIXBUF_LOG(("%s\n", pMixBuf->pszName));
Note:
See TracChangeset
for help on using the changeset viewer.