diff --git a/audio/pcm/pcm.go b/audio/pcm/pcm.go index 76594b88..5913fa0b 100644 --- a/audio/pcm/pcm.go +++ b/audio/pcm/pcm.go @@ -33,8 +33,8 @@ import ( "github.com/yobert/alsa" ) -// Resample resamples pcm data from fromBuf to 'toRate' Hz and returns the resulting pcm. -// If an error occurs, an error will be returned along with the original fromBuf's data +// Resample takes an alsa.Buffer (fromBuf) and resamples the pcm audio data to 'toRate' Hz and returns the resulting pcm. +// If an error occurs, an error will be returned along with the original fromBuf's data. // Notes: // - Currently only downsampling is implemented and fromBuf's rate must be divisible by toRate or an error will occur. // - If the number of bytes in fromBuf.Data is not divisible by the decimation factor (ratioFrom), the remaining bytes will