audio: Bug fix: compilation error on JavaScript

This commit is contained in:
Hajime Hoshi 2016-04-04 02:53:07 +09:00
parent ab793d9c8b
commit 0b040e92e8

View File

@ -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 {