0
include <windows.h>
include <mmsystem.h>
int flag;
flag = midiOutOpen(&device, midiport, 0, 0, CALLBACK_NULL);
flag = midiOutShortMsg(device, message.word);

These code work when I am developing But after deploy to Window Shop, there is no sound

When deploy to window shop, I have checked "Background Media Playback" under Capabilities

The documentation I can find is UWP/CSharp, But I want to write C++

acraig5075
  • 10,588
  • 3
  • 31
  • 50
  • Run the [WACK](https://developer.microsoft.com/en-us/windows/downloads/app-certification-kit/) to find out whether you are using any APIs you shouldn't be using. – IInspectable Feb 25 '20 at 08:10
  • Value of `midiport`? Do you output MIDI events to the "Microsoft GS Wavetable Synthesizer"? Or is it an external MIDI port? – Former contributor Feb 26 '20 at 11:30

0 Answers0