Click here to Skip to main content
15,885,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6910-Oct-12 14:13
professionalDaveyM6910-Oct-12 14:13 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff11-Oct-12 1:49
Jumpin' Jeff11-Oct-12 1:49 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff11-Oct-12 2:13
Jumpin' Jeff11-Oct-12 2:13 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6911-Oct-12 7:18
professionalDaveyM6911-Oct-12 7:18 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff11-Oct-12 8:21
Jumpin' Jeff11-Oct-12 8:21 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6911-Oct-12 10:40
professionalDaveyM6911-Oct-12 10:40 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff12-Oct-12 1:42
Jumpin' Jeff12-Oct-12 1:42 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6911-Oct-12 10:51
professionalDaveyM6911-Oct-12 10:51 
One quick question, are you terminating the application by pressing a key or by the close button on the console window. If the latter, that could be why it's hanging.

Edit: Some research reveals this quote from MSDN:
"To stop recording, use midiInStop. Before closing the device by using the midiInClose function, mark any pending data blocks as being done by calling midiInReset".

So it appears that the procedure should be Stop, Reset, Unprepare and free the buffers, then Close. I haven't used the Stop as it appeared (possibly erroneously) that Reset did the same thing, and easy fix thankfully.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)




modified 11-Oct-12 17:54pm.

GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff11-Oct-12 14:34
Jumpin' Jeff11-Oct-12 14:34 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff11-Oct-12 10:20
Jumpin' Jeff11-Oct-12 10:20 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6911-Oct-12 10:52
professionalDaveyM6911-Oct-12 10:52 
GeneralRe: C# MIDI controller interface. Pin
DaveyM692-Nov-12 8:54
professionalDaveyM692-Nov-12 8:54 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff2-Nov-12 12:23
Jumpin' Jeff2-Nov-12 12:23 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff16-Nov-12 5:36
Jumpin' Jeff16-Nov-12 5:36 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6916-Nov-12 6:22
professionalDaveyM6916-Nov-12 6:22 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff16-Nov-12 13:17
Jumpin' Jeff16-Nov-12 13:17 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6916-Nov-12 20:32
professionalDaveyM6916-Nov-12 20:32 
QuestionC# 2008 with linq reference problem Pin
dcof5-Sep-12 12:17
dcof5-Sep-12 12:17 
AnswerRe: C# 2008 with linq reference problem Pin
Shameel5-Sep-12 20:35
professionalShameel5-Sep-12 20:35 
QuestionLoosley Coupled Events Pin
Member 81371055-Sep-12 10:21
Member 81371055-Sep-12 10:21 
AnswerRe: Loosley Coupled Events Pin
Pete O'Hanlon5-Sep-12 10:27
mvePete O'Hanlon5-Sep-12 10:27 
GeneralRe: Loosley Coupled Events Pin
Member 81371055-Sep-12 10:30
Member 81371055-Sep-12 10:30 
GeneralRe: Loosley Coupled Events Pin
Pete O'Hanlon5-Sep-12 10:33
mvePete O'Hanlon5-Sep-12 10:33 
GeneralRe: Loosley Coupled Events Pin
Member 81371055-Sep-12 10:35
Member 81371055-Sep-12 10:35 
GeneralRe: Loosley Coupled Events Pin
Pete O'Hanlon5-Sep-12 10:44
mvePete O'Hanlon5-Sep-12 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.