IGModAudioChannel:WriteToDisk
boolean, string IGModAudioChannel:WriteToDisk( string fileName, number bassFlags, function callback, boolean async = false )
Description
Writes the channel into a file always using the DATA gamePath, the encoder internally used depends on the filename.
Valid encoders for file extension are:
.wav(RequiresBASSENCplugin).aiff(RequiresBASSENCplugin).mp3(RequiresBASSENC_MP3plugin).ogg(RequiresBASSENC_OGGplugin).opus(RequiresBASSENC_OPUSplugin).flac(RequiresBASSENC_FLACplugin)
This function requires the
BASSENCplugin to work at all!
You can find all the plugins at https://www.un4seen.com/ drop them into thebin/folder besideslibbass.soThis function only works on
decodechannels, a channel needs to havedecodeset as a flag when being createdRecently Added
This was recently added in version (0.8 - DEV).
Arguments
Returns
Example
Example usage of having a .wav and making it a .mp3
end, true)) end)