Fix a bug where audio is choppy because the samples buffer passed to the onSendSamples callback is not being filled completely. For this purpose, the io.ReadFull wrapper function was used as it blocks until there is enough data to fill the whole buffer (which mp3.(*Decoder).Read doesn't seem to be doing).
Fix a bug where audio is choppy because the
samples
buffer passed to theonSendSamples
callback is not being filled completely. For this purpose, theio.ReadFull
wrapper function was used as it blocks until there is enough data to fill the whole buffer (whichmp3.(*Decoder).Read
doesn't seem to be doing).