예제 #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));
 }
예제 #2
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
예제 #3
0
 public static extern uint midiOutSetVolume(HMIDIOUT hmo, [NativeTypeName("DWORD")] uint dwVolume);
예제 #4
0
 public static extern MMRESULT midiOutUnprepareHeader(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
예제 #5
0
 public static extern MMRESULT midiOutReset(HMIDIOUT hmo);
예제 #6
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
 private static extern MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
                                            MidiOutProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags);
 public static extern MMRESULT midiOutClose(HMIDIOUT hmo);
예제 #9
0
 public static extern uint midiOutCacheDrumPatches(HMIDIOUT hmo, uint uPatch, [NativeTypeName("LPWORD")] ushort *pwkya, uint fuCache);
예제 #10
0
 public static extern uint midiOutCachePatches(HMIDIOUT hmo, uint uBank, [NativeTypeName("LPWORD")] ushort *pwpa, uint fuCache);
예제 #11
0
 public static extern uint midiOutReset(HMIDIOUT hmo);
예제 #12
0
 public static extern uint midiOutLongMsg(HMIDIOUT hmo, [NativeTypeName("LPMIDIHDR")] MIDIHDR *pmh, uint cbmh);
예제 #13
0
 public static extern uint midiOutShortMsg(HMIDIOUT hmo, [NativeTypeName("DWORD")] uint dwMsg);
예제 #14
0
 public static extern uint midiOutUnprepareHeader(HMIDIOUT hmo, [NativeTypeName("LPMIDIHDR")] MIDIHDR *pmh, uint cbmh);
예제 #15
0
 public static extern uint midiOutClose(HMIDIOUT hmo);
예제 #16
0
 public static extern MMRESULT midiOutUnprepareHeader(HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr);
예제 #17
0
 public static extern MMRESULT midiOutReset(HMIDIOUT hmo);
예제 #18
0
 public static extern uint midiOutGetID(HMIDIOUT hmo, [NativeTypeName("LPUINT")] uint *puDeviceID);
예제 #19
0
 public static extern MMRESULT midiOutShortMsg(HMIDIOUT hmo, UInt32 dwMsg);
예제 #20
0
 public static extern uint midiOutMessage(HMIDIOUT hmo, uint uMsg, [NativeTypeName("DWORD_PTR")] nuint dw1, [NativeTypeName("DWORD_PTR")] nuint dw2);
예제 #21
0
 public static extern MMRESULT midiOutClose(HMIDIOUT hmo);
예제 #22
0
 public static extern MMRESULT midiOutPrepareHeader(HMIDIOUT hmo, ref MIDIHDR lpMidiOutHdr, uint cbMidiOutHdr);
예제 #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
 }
예제 #24
0
 public static extern MMRESULT midiOutLongMsg(HMIDIOUT hmo, ref MIDIHDR lpMidiOutHdr, uint cbMidiOutHdr);
예제 #25
0
 public static extern MMRESULT midiOutShortMsg(HMIDIOUT hmo, UInt32 dwMsg);
예제 #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);
 }
예제 #27
0
 private static extern MMRESULT midiOutOpen(out HMIDIOUT lphmo, UIntPtr uDeviceID,
     MidiOutProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags);
예제 #28
0
 public static extern uint midiDisconnect(HMIDI hmi, HMIDIOUT hmo, [NativeTypeName("LPVOID")] void *pReserved);