pcm: comment fix

This commit is contained in:
Trek H 2019-03-13 16:29:44 +10:30
parent 9799854582
commit b160e6a5e2
1 changed files with 2 additions and 2 deletions

View File

@ -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