HolyLib Wiki

IGModAudioChannelEncoder:ServerInit

 boolean, string IGModAudioChannelEncoder:ServerInit( string port, number buffer, number burst, number flags )

Description

Sets up the encoder as a Shoutcast/Icecast source server, which listening clients can directly connect to.
See https://www.un4seen.com/doc/#bassenc/BASS_Encode_ServerInit.html

This function requires the BASSENC plugin to work at all!
You can find all the plugins at https://www.un4seen.com/ drop them into the bin/ folder besides libbass.so

Arguments

1string port

The port to listen on

2number buffer

The client buffer length in bytes

3number burst

The buffer level required to trigger a burst of data in bytes

4number flags

A combination of BASS_ENCODESERVER flags

Returns

1boolean success
2string errMsg = nil