Make a new shout object. This method does not connect to any server. See connect.
Returns the libshout version, as a string.
Connect to the server. You must set all the parameters you’re going
to set before connecting.
Connect to the server. You must set all the parameters you’re going
to set before connecting.
Disconnect from the server.
Disconnect from the server.
Send some data. to_send is a String containing the data to send.
Sleep the necessary amount of time to play back the audio data sent since
the last call to sync. After calling this,
it’s time to send more data.
Return the proper amount of time, in milliseconds, before more data needs
to be sent. This is for use when you would like to do something else in the
intervening time period besides sleep.
————————— getters
——————————
:nodoc:
Set the hostname to connect to. The default is localhost.
Set the destination port. The default is 8000.
Set the user to authenticate as. The default is "source".
Set the user to authenticate as. The default is "source".
Set the password to authenticate with. The default is no password.
Set the password to authenticate with. The default is no password.
Set the protocol to use when connecting. Default is Shout::HTTP. Possible
values are:
- Shout::HTTP
- HTTP; the protocol used by Icecast.
- Shout::XAUDIOCAST
- XAudioCast. Obsolete.
- Shout::ICY
- Icy. Obsolete. Used by Shoutcast.
Set the format of the audio. Possible values are:
- Shout::VORBIS
- Ogg Vorbis
- Shout::MP3
- MP3
Set the mountpoint on the server.
Set a filename where the server should dump the data from this stream. Only
do this if you know what you are doing.
Set the User-Agent reported. The default is "libshout/<libshout
version>", e.g. "libshout/2.0.0".
Set the User-Agent reported. The default is "libshout/<libshout
version>", e.g. "libshout/2.0.0".
Set whether or not this stream should be "public", i.e.
advertised to a yp server such as yp.icecast.org. True or false. Nil counts
as false.
Set the name of the stream, e.g. "monkey’s radio tunes."