If I make a stream copy using the StreamCopy DSP like this:
m_DspClone = New DSP_StreamCopy()
Dim _info As BASS_INFO = Bass.BASS_GetInfo
With m_DspClone
.OutputLatency = _info.latency
.StreamCopyFlags = .ChannelInfo.flags
.ChannelHandle = _NodeID 'Mixer node to clone
.DSPPriority = -1000
.StreamCopyDevice = 0 'Send to nosound
.Start() 'Start
End With
m_EncoderCloneStreamId = m_DspClone.StreamCopy
Then I encode it like this:
_Encoder = BassEnc.BASS_Encode_Start(m_EncoderCloneStreamId, _EncoderString, BASSEncode.BASS_ENCODE_NOHEAD Or BASSEncode.BASS_ENCODE_FP_16BIT, Nothing, IntPtr.Zero)
If I then cast it to a stream like this:
BassEnc.BASS_Encode_CastInit(_Encoder, .FullStreamURL, .Password, _EncoderContent, .Title, .URL, .Genre, .Description, Nothing, CInt(.EncodingBitrate), .Public)
After a while the cast stream starts to pause and then after a few seconds it continues.
What I'm wondering is does this copy create a completely independent stream from the source? Also how can I stop the stream from stopping and then continuing? Is there some sort of flag that needs setting or should I create a separate decode mixer for this process then instead of sending the copy to the No Sound device, send it to the mixer instead and set the frequency of the mixer to 45000 instead of 44100?