Hey Chris :-)
I think I have to go further into detail: What if I want to stop recording a live radio stream, as follows:
If IsRecording Is False Then
If fs IsNot Nothing Then
fs.Close()
fs.Dispose()
End If
fs = New System.IO.FileStream(MP3Path & "\recorded radio streams\" & StationRecorded & " - " & Date & ".mp3", FileMode.CreateNew)
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_BUFFER, 300)
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_BUFFER, 300)
Bass.BASS_ChannelSetAttribute(chan, BASSAttribute.BASS_ATTRIB_MIDI_TRACK_VOL, 1)
DownloadProcedure = New DOWNLOADPROC(AddressOf MyDownload)
Dim url As String = listPlayList(lstPlaylist.SelectedIndex).Filename
stream = Bass.BASS_StreamCreateURL(url, 0, BASSFlag.BASS_STREAM_AUTOFREE, DownloadProcedure, CType(0, IntPtr))
Bass.BASS_ChannelPlay(chan, False)
Else
Bass.BASS_ChannelStop(stream)
End If
End Sub
Private Sub MyDownload()
[...]
End Sub
So instead of BASS_ChannelPlay and BASS_ChannelStop should I use BASS_Mixer_StreamAddChannel and BASS_Mixer_ChannelRemove instead, just like I was only playing the stream without recording?