mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
audio: Bug fix: compilation error on JavaScript
This commit is contained in:
parent
ab793d9c8b
commit
0b040e92e8
@ -51,8 +51,8 @@ func startPlaying(src io.Reader, sampleRate int) error {
|
||||
sampleRate: sampleRate,
|
||||
bufferSource: nil,
|
||||
context: class.New(),
|
||||
positionInSamples: int64(p.context.Get("currentTime").Float() * float64(p.sampleRate)),
|
||||
}
|
||||
p.positionInSamples = int64(p.context.Get("currentTime").Float() * float64(p.sampleRate))
|
||||
go func() {
|
||||
defer p.close()
|
||||
for {
|
||||
|
Loading…
Reference in New Issue
Block a user