alsa: added comment for exported function DataSize

This commit is contained in:
Trek H 2020-08-13 15:42:28 +09:30
parent c394dc9d89
commit ba08c58af4
1 changed files with 2 additions and 0 deletions

View File

@ -466,6 +466,8 @@ func (d *ALSA) formatBuffer() pcm.Buffer {
return formatted return formatted
} }
// DataSize returns the size in bytes of the data ALSA device d will
// output in the duration of a single recording period.
func (d *ALSA) DataSize() int { func (d *ALSA) DataSize() int {
return pcm.DataSize(d.SampleRate, d.Channels, d.BitDepth, d.RecPeriod, d.Codec) return pcm.DataSize(d.SampleRate, d.Channels, d.BitDepth, d.RecPeriod, d.Codec)
} }