MIDI sound in VB.NET: after pausing & resuming, it sounds different?

OK, I figured out how to do it. Here is the code, loosely inspired to the freebasic. Net link I mentioned in the comment above, but a lot simpler: Public Shared Sub ResumeAfterPause() MsgBox(CLng(_Status())) 'Just to make sure the status is the position, see below Dim sCommand As String = "play " & sAlias & " from " & CLng(_Status()) mciSendString(sCommand, Nothing, 0, IntPtr.

Zero) End Sub And the status procedure is modified like this: Public Shared Function _Status() As String Dim sBuffer As New StringBuilder(128) mciSendString("status " & sAlias & " position", sBuffer, sBuffer. Capacity, IntPtr. Zero) Return sBuffer.ToString() End Function I guess that, when a song is played from the beginning, the player reads instrument info.

When it starts from a different position, you need to let the device driver know that he's starting from a different position, so that he can retrieve the previous instrument settings Anyway, all's well what ends well (although it's not the end yet... When my app is done, I need to test it on other platforms too and see if it works the same).

OK, I figured out how to do it. Here is the code, loosely inspired to the freebasic. Net link I mentioned in the comment above, but a lot simpler: Public Shared Sub ResumeAfterPause() MsgBox(CLng(_Status())) 'Just to make sure the status is the position, see below Dim sCommand As String = "play " & sAlias & " from " & CLng(_Status()) mciSendString(sCommand, Nothing, 0, IntPtr.

Zero) End Sub And the status procedure is modified like this: Public Shared Function _Status() As String Dim sBuffer As New StringBuilder(128) mciSendString("status " & sAlias & " position", sBuffer, sBuffer. Capacity, IntPtr. Zero) Return sBuffer.ToString() End Function I guess that, when a song is played from the beginning, the player reads instrument info.

When it starts from a different position, you need to let the device driver know that he's starting from a different position, so that he can retrieve the previous instrument settings. Anyway, all's well what ends well (although it's not the end yet... When my app is done, I need to test it on other platforms too and see if it works the same).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions