Move audio callback
This commit is contained in:
parent
3d34b7e25a
commit
1a9e976d4c
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue