mirror of https://bitbucket.org/ausocean/av.git
alsa: added comment for exported function DataSize
This commit is contained in:
parent
c394dc9d89
commit
ba08c58af4
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue