def create_format(type) #format=ref %ogg(%vorbis(quality=0.3,samplerate=44100)) format=ref %vorbis(quality=0.3,samplerate=44100) if type=="aac" then format:=%aacplus(bitrate=64,samplerate=44100) elsif type=="mp3" then format:=%mp3(bitrate=96,samplerate=44100) elsif type!="ogg" then print("ERROR: Unsuported format, create default %vorbis") end !format end
add_timeout(fast=false,0.,update_timeout)