Is it possible to get a byte buffer directly from an audio asset in OpenSL ES (for Android)?
- 阅读更多 关于 Is it possible to get a byte buffer directly from an audio asset in OpenSL ES (for Android)?
问题 I would like to get a byte buffer from an audio asset using the OpenSL ES FileDescriptor object, so I can enqueue it repeatedly to a SimpleBufferQueue, instead of using SL interfaces to play/stop/seek the file. There are three main reasons why I would like to manage the sample bytes directly: OpenSL uses an AudioTrack layer to play/stop/etc for Player Objects. This does not only introduce unwanted overhead, but it also has several bugs, and rapid starts/stops of the player cause lots of