change volume of mp3 playing via wmplib in c#
问题 Is it somehow possible to change the volume of a mp3-file that is playing via wmplib? Changing the volume of the program itself would be ok as well. Are there any solutions to do this? 回答1: The idea is to send WM_APPCOMMAND message (also see this answer). For WPF use WindowInteropHelper to get the Handle of the Window : class MainWindow : Window { ... private const int APPCOMMAND_VOLUME_MUTE = 0x80000; private const int WM_APPCOMMAND = 0x319; private const int APPCOMMAND_VOLUME_UP = 10 *