Function legion::audio::detail::convertToMono(const byte *, int, byte *, int, int)

Function Documentation

void legion::audio::detail::convertToMono(const byte *inputData, int dataSize, byte *monoData, int channels, int bitsPerSample)

function to convert audio data to mono audio data

inputData is unedited audio data,

dataSize is the complete audio data size,

monoData is the out mono data, monoData is assumed to be resized with the correct size (dataSize/channelCount)

channels is the channelCount or amount of channels

bitsPerSample is the audio resolution (16 bit for mp3, and usually 16 bit for wav)