19 May '13 - 16:57 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Developments / BASS / Re: Changing stream for BASS_Encode_ServerInit on: 10 Jul '12 - 16:00
I tested what you said and it works perfectly!

Thanks again!
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: Changing stream for BASS_Encode_ServerInit on: 10 Jul '12 - 15:13
Thank you for your fast response! Smiley

I'll try it and post the result!
ReplyReply Reply with quoteQuote
3  Developments / BASS / [solved] Changing stream for BASS_Encode_ServerInit on: 10 Jul '12 - 14:23
Hello BASS community,

I'm trying to create a audio streaming server for my local network. Streaming to the internet is not allowed so as far as I know the only possibility is using the BASS_Encode_ServerInit function.

I'm able to start a server and to connect to it via VLC i have no idea how to switch to another stream without restarting the server. Currently this is what I've done:

stream = Bass.BASS_StreamCreateFile("MYFILE.mp3", 0L, 0L, BASSFlag.BASS_DEFAULT);

_encoderHandle = BassEnc.BASS_Encode_Start(stream, "lame -r -s 44100 -b 128 -", un4seen.Bass.AddOn.Enc.BASSEncode.BASS_ENCODE_NOHEAD, null, IntPtr.Zero);
if (_encoderHandle == 0)
  return false;

_serverHandle = Un4seen.Bass.AddOn.Enc.BassEnc.BASS_Encode_ServerInit(_encoderHandle, "127.0.0.1:" + Port.ToString(), 8000, 8000, Un4seen.Bass.AddOn.Enc.BASSEncodeServer.BASS_ENCODE_SERVER_DEFAULT, clientProc, IntPtr.Zero);
if (_serverHandle == 0)
  return false;

Bass.BASS_ChannelPlay(stream, false);

What would be the best way, to change the currently playing track?

Thanks in advance!

raketenhund
ReplyReply Reply with quoteQuote
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines