mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/internal/readerdriver: Bug fix: Invoke onReady for go2cpp
Updates #1599
This commit is contained in:
parent
ea9d64f5b8
commit
146678596b
@ -42,6 +42,7 @@ type contextImpl struct {
|
||||
|
||||
func NewContext(sampleRate int, channelNum int, bitDepthInBytes int, onReady func()) (Context, error) {
|
||||
if js.Global().Get("go2cpp").Truthy() {
|
||||
defer onReady()
|
||||
return &go2cppDriverWrapper{go2cpp.NewContext(sampleRate, channelNum, bitDepthInBytes)}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user