HolyLib Wiki

IGModAudioChannelEncoder:CastInit

 boolean, string IGModAudioChannelEncoder:CastInit( string server, string password, string content, string name = nil, string url = nil, string genre = nil, string desc = nil, string headers = nil, number bitrate = 0, number flags = 0 )

Description

Initializes sending the encoder's output to a Shoutcast or Icecast server.
See https://www.un4seen.com/doc/#bassenc/BASS_Encode_CastInit.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 server

The server to send the data to, in the form address:port/mountpoint (Icecast) or address:port (Shoutcast)

2string password

The source password on the server

3string content

The content-type of the stream, eg. audio/mpeg

4string name = nil

The name of the stream

5string url = nil

The URL of the stream's webpage

6string genre = nil

The genre of the stream

7string desc = nil

The description of the stream

8string headers = nil

Additional HTTP headers to send to the server, each one terminated with a carriage return and line feed

9number bitrate = 0

The bitrate of the stream in kbps, only used for stream directory listings

10number flags = 0

A combination of BASS_ENCODECAST flags

Returns

1boolean success
2string errMsg = nil