Implementing CEcho::DoProcessOutput
[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.]
The DoProcessOutput method performs the digital signal processing. This is the method that makes the changes to the data provided by Windows Media Player. It is the results of this method that you will hear as an echo effect when your Echo sample plug-in is complete.
For this sample, the plug-in will only process 8-bit or 16-bit audio. You will need to make some changes to the plug-in wizard sample code to remove the sections that process higher bit depth audio. It is worthwhile to study these sections, however, because you may decide to add your own echo implementation for those formats.
The following sections detail the changes you need to make to the code:
- Removing the Code to Process Greater than 16 Bits
- Processing the Audio Data
- Variables to Perform Processing
- Creating the Echo Effect
Related topics