Changing the Sample Audio DSP Plug-in Property
[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 will probably want to change the property that the Windows Media Player Plug-in Wizard creates by default. The following list details the items that might require changing:
- The dialog resource. Click the ResourceView tab in the Project Workspace window. Expand the folder list to open the Dialog folder. Double-click the dialog resource to open the resource editor. You can make changes to the property page dialog to fulfill your needs. For instance, you could change the text in the label or replace the edit control with a checkbox.
- The property page object code. The default implementation uses a variable of type double to store the scale factor. You might require a different type of data. This would also require you to change the code that persists the data to the registry and reads the data from the registry (including the code that reads from the registry in CProjectName::FinalConstruct).
- The member variable that stores the property value. This variable is named "m_fScaleFactor" and is declared as type double. You may want to change the name and type of this variable throughout the project.
- The property get and property put methods. You might want to change the names, parameters, and implementations of these methods. Don't forget to also reflect those changes elsewhere in the project. For instance, the property page Apply method calls CProjectName::put_scale.
Related topics