Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
MIDIOUTCAPS (winmm)
 
.
Summary
The MIDIOUTCAPS structure describes the capabilities of a MIDI output device.

C# Signature:

    [StructLayout(LayoutKind.Sequential)]
    struct MIDIOUTCAPS
    {
    public ushort wMid;
    public ushort wPid;
    public uint vDriverVersion;     //MMVERSION
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst= 32)]
    public string szPname;
    public ushort wTechnology;
    public ushort wVoices;
    public ushort wNotes;
    public ushort wChannelMask;
    public uint dwSupport;
    }

    // values for wTechnology field of MIDIOUTCAPS structure
    private const ushort MOD_MIDIPORT = 1;     // output port
    private const ushort MOD_SYNTH = 2;        // generic internal synth
    private const ushort MOD_SQSYNTH = 3;      // square wave internal synth
    private const ushort MOD_FMSYNTH = 4;      // FM internal synth
    private const ushort MOD_MAPPER = 5;       // MIDI mapper
    private const ushort MOD_WAVETABLE = 6;    // hardware wavetable synth
    private const ushort MOD_SWSYNTH = 7;      // software synth

    // flags for dwSupport field of MIDIOUTCAPS structure
    private const uint MIDICAPS_VOLUME = 1;      // supports volume control
    private const uint MIDICAPS_LRVOLUME = 2;    // separate left-right volume control
    private const uint MIDICAPS_CACHE = 4;
    private const uint MIDICAPS_STREAM = 8;      // driver supports midiStreamOut directly

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

This is sample Code

MidiOutCaps outCaps = new MidiOutCaps();

int result = midiOutGetDevCaps(deviceID, ref outCaps, Marshal.SizeOf(outCaps));

Documentation
MIDIOUTCAPS on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions