Okay ... the problem was on OnProcess samples - function returned false stopping streaming
the solution:
bool NetworkRecorder::OnProcessSamples(const sf::Int16* Samples, std::size_t SamplesCount){
sf::Packet PacketOut;
PacketOut << AUDIODATA;
PacketOut.Append(Samples, SamplesCount * sizeof(sf::Int16));
sf::Socket::Status st=Application::instance->internet.Send(PacketOut);
while(st==sf::Socket::NotReady){
st=Application::instance->internet.Send(PacketOut);
Sleep(0.001f);
}
return st==sf::Socket::Done;
}
not sure if i lose some voice i say coz of blocking the function, im not sure if another thread executes this function on another stack