Author Topic: Need help getting Input listing with VB .NET  (Read 3470 times)


  • Posts: 1
I am trying to create a simple wav file recorder like the one in the vb examples that come with BASS.  Since there are no recording examples with the vb .NET API I am trying to do so based on the vb 6.0 example.  I get no compile errors on running the program, however the strings returned by VBStrFromAnsiPtr(BASS_RecordGetInputName()) are strings of chinese characters, and not the expected "Line In" "Microphone" etc...

Does anyone know why this is?  And possible what I can do to fix it?  I have pasted the code that populates a combo box with the name strings below.

thank you!

           While BASS_(c)
               Dim outStr As String = VBStrFromAnsiPtr(BASS_RecordGetInputName(c))
               System.Windows.Forms.MessageBox.Show(outStr, "Input " & c, MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)
               If (BASS_RecordGetInput(c) And BASS_INPUT_OFF) = 0 Then
                   cmbInput.SelectedIndex = c 'this 1 is currently "on"
               End If
               c = c + 1
           End While
       End If