Move audio callback
This commit is contained in:
parent
3d34b7e25a
commit
1a9e976d4c
2 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,6 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AudioCallback function.
|
|
||||||
type AudioCallback func(data []float32, frames int)
|
|
||||||
|
|
||||||
var internalAudioStreamCallback AudioCallback
|
var internalAudioStreamCallback AudioCallback
|
||||||
|
|
||||||
// SetAudioStreamCallback - Audio thread callback to request new data
|
// SetAudioStreamCallback - Audio thread callback to request new data
|
||||||
|
|
|
@ -41,6 +41,9 @@ func NewWave(sampleCount, sampleRate, sampleSize, channels uint32, data []byte)
|
||||||
return Wave{sampleCount, sampleRate, sampleSize, channels, d}
|
return Wave{sampleCount, sampleRate, sampleSize, channels, d}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AudioCallback function.
|
||||||
|
type AudioCallback func(data []float32, frames int)
|
||||||
|
|
||||||
// Sound source type
|
// Sound source type
|
||||||
type Sound struct {
|
type Sound struct {
|
||||||
Stream AudioStream
|
Stream AudioStream
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue