mirror of https://bitbucket.org/ausocean/av.git
pcm: comment fix
This commit is contained in:
parent
9799854582
commit
b160e6a5e2
|
@ -33,8 +33,8 @@ import (
|
||||||
"github.com/yobert/alsa"
|
"github.com/yobert/alsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Resample resamples pcm data from fromBuf to 'toRate' Hz and returns the resulting pcm.
|
// 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
|
// If an error occurs, an error will be returned along with the original fromBuf's data.
|
||||||
// Notes:
|
// Notes:
|
||||||
// - Currently only downsampling is implemented and fromBuf's rate must be divisible by toRate or an error will occur.
|
// - 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
|
// - If the number of bytes in fromBuf.Data is not divisible by the decimation factor (ratioFrom), the remaining bytes will
|
||||||
|
|
Loading…
Reference in New Issue