Move audio callback

This commit is contained in:
Milan Nikolic 2023-11-12 17:54:56 +01:00
parent 3d34b7e25a
commit 1a9e976d4c
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
2 changed files with 3 additions and 3 deletions

View file

@ -41,6 +41,9 @@ func NewWave(sampleCount, sampleRate, sampleSize, channels uint32, data []byte)
return Wave{sampleCount, sampleRate, sampleSize, channels, d}
}
// AudioCallback function.
type AudioCallback func(data []float32, frames int)
// Sound source type
type Sound struct {
Stream AudioStream