In this piece of code it gets the data for each channel
using the bass.net library's
For a As Integer = 0 To length / 2 - 1
' decide on L/R channel
If a Mod 2 = 0 Then
' L channel
If data(a) > maxL Then
maxL = data(a)
End If
Else
' R channel
If data(a) > maxR Then
maxR = data(a)
End If
End If
Next
You would have to translate/convert the entire unsafe block or code segment.
I don't think there is any direct equivelant in VB. This code may be useful
to you though:
Dim buffer As New Byte()
' fill the buffer somehow
Dim data As Short = BitConverter.ToInt16(buffer, 0)
Short* is not valid in VB.Net and so that line won't compile.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.