Good morning everybody,
i know it is not a new topic, but i almost going crazy for BASS_StreamCreateURL that,
on some machines, after some while exits, on some others it never does, also after some hours.
I am making a standalone player that should continously play a stream and, if the stream is
down or the player or the host pc is set incorrectly, it should try endlessly to reconnect.
The channel is configured as a decoding channel feeding a nonstop mixer, configured
for a net buffering of 60S and prebuffering 50%, Bass version 18.104.22.168, OS WinXP SP3.
All seems fine, but i got this problem in this way :
when the channel starts buffering but has not filled the buffer yet, i change the
gateway on my PC to a non-existent ip.
In this case, BASS_StreamCreateURL never exits.
The problem is not much that the function never returns, but rather that i cannot
do anything to cancel it.
I also tried what Ian suggests in this topic:http://www.un4seen.com/forum/?topic=11672.0
but, since BASS_StreamCreateURL never exits, it doesn't return the handle that
i can then use with BASS_StreamFree.
Last minute news:
while, with the "Gateway trick", the function never returns even if the gateway
is brought back to the correct one, i noticed that, also after 1 hour or more,
if i unplug the ethernet connector on the "stuck" pc, it immediately
recovers and the function finally returns.
Another question: how does bass handle its netbuffer?
While it is playing i tried to unplug the network cable, and i noticed
two different behaviours (netbuffer is 60Seconds).
If, within some seconds, i replug the cable, the audio is not interrupted
and the buffer, once decreasing, fills up again.
If i wait more, say 15 - 20 seconds, then i replug the cable, even if
i can navigate the internet, the buffer does not fill up any more and
after a while the player stops then reconnects.
Why seems that, when the buffer is below a certain level, it
does not grow when the net comes back?