golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.25k stars 17.7k forks source link

x/mobile/exp/audio: support audio streaming #10329

Open rakyll opened 9 years ago

rakyll commented 9 years ago

Currently, the audio player has a naive OpenAL backend that buffers the entire source into the memory to prepare the media. We currently can only recommend the audio player to play small audio files such as sound effects.

In order to relax this restriction we should limit the generation of OpenAL buffers and reuse them as the source is done processing. The number of buffers to be generated are limited on some platforms, such as iOS, to certain number. The rate of processing, and the host device's resources are both critical in the determination of the number of active buffers.

rakyll commented 9 years ago

Per @nigeltao's suggestion, I will draft a design doc with more details.

gopherbot commented 9 years ago

CL https://golang.org/cl/15510 mentions this issue.