Ejemplo n.º 1
0
 /// <summary>
 /// Opens a MIDI output device.
 /// </summary>
 /// NOTE: This is adapted from the original Win32 function in order to make it typesafe.
 ///
 /// Win32 docs: http://msdn.microsoft.com/en-us/library/ms711632(VS.85).aspx
 public static MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
                                    MidiOutProc dwCallback, UIntPtr dwCallbackInstance)
 {
     //return midiOutOpen(out lphmo, uDeviceID, dwCallback, dwCallbackInstance,
     //    dwCallback == null ? MidiOpenFlags.CALLBACK_NULL : MidiOpenFlags.CALLBACK_FUNCTION);
     return(midiOutOpen(out lphmo, uDeviceID, dwCallback, dwCallbackInstance,
                        dwCallback == null ? MidiOpenFlags.CALLBACK_NULL : MidiOpenFlags.CALLBACK_FUNCTION& MidiOpenFlags.MIDI_IO_STATUS));
 }
Ejemplo n.º 2
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
Ejemplo n.º 3
0
 public static extern uint midiOutSetVolume(HMIDIOUT hmo, [NativeTypeName("DWORD")] uint dwVolume);
Ejemplo n.º 4
0
 public static extern MMRESULT midiOutUnprepareHeader(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
Ejemplo n.º 5
0
 public static extern MMRESULT midiOutReset(HMIDIOUT hmo);
Ejemplo n.º 6
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
Ejemplo n.º 7
0
 private static extern MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
                                            MidiOutProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags);
Ejemplo n.º 8
0
 public static extern MMRESULT midiOutClose(HMIDIOUT hmo);
Ejemplo n.º 9
0
 public static extern uint midiOutCacheDrumPatches(HMIDIOUT hmo, uint uPatch, [NativeTypeName("LPWORD")] ushort *pwkya, uint fuCache);
Ejemplo n.º 10
0
 public static extern uint midiOutCachePatches(HMIDIOUT hmo, uint uBank, [NativeTypeName("LPWORD")] ushort *pwpa, uint fuCache);
Ejemplo n.º 11
0
 public static extern uint midiOutReset(HMIDIOUT hmo);
Ejemplo n.º 12
0
 public static extern uint midiOutLongMsg(HMIDIOUT hmo, [NativeTypeName("LPMIDIHDR")] MIDIHDR *pmh, uint cbmh);
Ejemplo n.º 13
0
 public static extern uint midiOutShortMsg(HMIDIOUT hmo, [NativeTypeName("DWORD")] uint dwMsg);
Ejemplo n.º 14
0
 public static extern uint midiOutUnprepareHeader(HMIDIOUT hmo, [NativeTypeName("LPMIDIHDR")] MIDIHDR *pmh, uint cbmh);
Ejemplo n.º 15
0
 public static extern uint midiOutClose(HMIDIOUT hmo);
Ejemplo n.º 16
0
 public static extern MMRESULT midiOutUnprepareHeader(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
Ejemplo n.º 17
0
 public static extern MMRESULT midiOutReset(HMIDIOUT hmo);
Ejemplo n.º 18
0
 public static extern uint midiOutGetID(HMIDIOUT hmo, [NativeTypeName("LPUINT")] uint *puDeviceID);
Ejemplo n.º 19
0
 public static extern MMRESULT midiOutShortMsg(HMIDIOUT hmo, UInt32 dwMsg);
Ejemplo n.º 20
0
 public static extern uint midiOutMessage(HMIDIOUT hmo, uint uMsg, [NativeTypeName("DWORD_PTR")] nuint dw1, [NativeTypeName("DWORD_PTR")] nuint dw2);
Ejemplo n.º 21
0
 public static extern MMRESULT midiOutClose(HMIDIOUT hmo);
Ejemplo n.º 22
0
 public static extern MMRESULT midiOutPrepareHeader(HMIDIOUT hmo, ref MIDIHDR lpMidiOutHdr, uint cbMidiOutHdr);
Ejemplo n.º 23
0
 /// <summary>
 /// Opens a MIDI output device.
 /// </summary>
 /// NOTE: This is adapted from the original Win32 function in order to make it typesafe.
 ///
 /// Win32 docs: http://msdn.microsoft.com/en-us/library/ms711632(VS.85).aspx
 public static MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
                                  MidiOutProc dwCallback, UIntPtr dwCallbackInstance)
 {
     //return midiOutOpen(out lphmo, uDeviceID, dwCallback, dwCallbackInstance,
     //    dwCallback == null ? MidiOpenFlags.CALLBACK_NULL : MidiOpenFlags.CALLBACK_FUNCTION);
     #region SysEx
     return midiOutOpen(out lphmo, uDeviceID, dwCallback, dwCallbackInstance,
         dwCallback == null ? MidiOpenFlags.CALLBACK_NULL : MidiOpenFlags.CALLBACK_FUNCTION & MidiOpenFlags.MIDI_IO_STATUS);
     #endregion
 }
Ejemplo n.º 24
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, ref MIDIHDR lpMidiOutHdr, uint cbMidiOutHdr);
Ejemplo n.º 25
0
 public static extern MMRESULT midiOutShortMsg(HMIDIOUT hmo, UInt32 dwMsg);
Ejemplo n.º 26
0
 /// <summary>
 /// Opens a MIDI output device.
 /// </summary>
 /// NOTE: This is adapted from the original Win32 function in order to make it typesafe.
 ///
 /// Win32 docs: http://msdn.microsoft.com/en-us/library/ms711632(VS.85).aspx
 public static MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
                                  MidiOutProc dwCallback, UIntPtr dwCallbackInstance)
 {
     return midiOutOpen(out lphmo, uDeviceID, dwCallback, dwCallbackInstance,
         dwCallback == null ? MidiOpenFlags.CALLBACK_NULL : MidiOpenFlags.CALLBACK_FUNCTION);
 }
Ejemplo n.º 27
0
 private static extern MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
     MidiOutProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags);
Ejemplo n.º 28
0
 public static extern uint midiDisconnect(HMIDI hmi, HMIDIOUT hmo, [NativeTypeName("LPVOID")] void *pReserved);