Variables to Manage the Delay Buffer
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
You must add the declarations for the member variables you need to manage the delay buffer. Add the following declarations to Echo.h in the "private" section:
DWORD m_cbDelayBuffer; // Count of bytes in delay buffer size.
BYTE* m_pbDelayPointer; // Movable pointer to delay buffer.
BYTE* m_pbDelayBuffer; // Pointer to the head of the delay buffer.
Add the following code to the CEcho constructor to initialize the delay buffer variables:
m_pbDelayBuffer = NULL;
m_pbDelayPointer = NULL;
m_cbDelayBuffer = 0;
Related topics